Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter me2you

    (@me2you)

    [resolved]

    line 162: add post type product

    if ( ! is_object($post) || ! isset($post->post_type) || ! in_array( get_post_type($post), array('post', 'page', 'attachment','product') ) ) {

    line 212: add post type product for achive product category

    if ( ! is_object($post) || ! isset($post->post_type) || ! in_array( get_post_type($post), array('post','product') ) ) {
            return;
        }

    line 281: add is_product_category

    elseif ( is_archive() || is_search() || is_home() || is_product_category () {

    Thanks.

    Plugin Author George Notaras

    (@gnotaras)

    Nice. Thanks!

    Plugin Author George Notaras

    (@gnotaras)

    I’m reopening this as a reminder to add a filter to customize the list of post types without having to edit the source. If other source code modifications were required in order to make this plugin work with WooCommerce, please let me know, so I can make things easier.

    Plugin Author George Notaras

    (@gnotaras)

    Closing topic.

    The plugin should work out of the box with custom post types and custom taxonomies.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add headers for Woocommerce’ is closed to new replies.