• Hello Ron and Team,
    Thank you for the great plugin.Here is a small issue i am facing please have a look.
    I am trying to gather the CPT ‘listings’ from my sub sites.
    I am using single theme for all the sites including tag site.
    My blog posts are shown in the tag site.
    My listing post are not shown in the tag site.
    I referred http://wordpress.org/support/topic/plugin-wordpress-mu-sitewide-tags-pages-grabbing-custom-post-type-posts also
    created a mu-pluign with following contents

    <?php
    function my_swt_post_type_filter( $listings ) {
    $auction[‘listings’] = true;
    return $listings;
    }
    add_filter( ‘sitewide_tags_allowed_post_types’, ‘my_swt_post_type_filter’ );
    ?>
    created a new listing post and updated an old listing post.
    Both the posts are not shown in the admin and front end of the tag site.
    please advice me if am missing any thing from my side.

    https://wordpress.org/plugins/wordpress-mu-sitewide-tags/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Ron Rennick

    (@wpmuguru)

    The reason the other thread was created was that the code you posted above wasn’t working. See my corrected version: http://wordpress.org/support/topic/plugin-wordpress-mu-sitewide-tags-pages-grabbing-custom-post-type-posts?replies=41#post-2461367

    Thread Starter homedes

    (@homedes)

    Thank you Ron for the quick reply.
    That was my mistake .The correct code used is
    <?php
    function my_swt_post_type_filter( $listings ) {
    $listings[‘listing’] = true;
    return $listings;
    }
    add_filter( ‘sitewide_tags_allowed_post_types’, ‘my_swt_post_type_filter’ );
    ?>

    and the CPT shown in the tag site but with one issue.
    The CPT is not redirected to the sub site .

    Plugin Author Ron Rennick

    (@wpmuguru)

    Can you check to see that you have the latest version?

    Thread Starter homedes

    (@homedes)

    Yes Ron,I have the Version 0.4.2 .
    Also i don’t have any cache plugin (cache via nginx)

    Thread Starter homedes

    (@homedes)

    One more update for your kind attention
    CPT category and tags are not updated in the tag site

    Plugin Author Ron Rennick

    (@wpmuguru)

    Also i don’t have any cache plugin (cache via nginx)

    Front end caching wouldn’t have anything to do with SWT.

    Does your CPT support custom fields?

    CPT category and tags are not updated in the tag site

    Custom taxonomies or built in cats/tags?

    Thread Starter homedes

    (@homedes)

    Yes Ron, our CPT support custom fields.
    our CPT use Custom taxonomies and not using the WordPress cats/tags for the CPT.

    Thread Starter homedes

    (@homedes)

    I have tried this code for the Custom taxonomies
    function my_swt_custom_tax_filter( $listings_tax ) {
    $listings_tax[‘listing_category’] = true;
    return $listings_tax;
    }
    add_filter( ‘sitewide_tags_custom_taxonomies’, ‘my_swt_custom_tax_filter’ );

    But no luck

    Plugin Author Ron Rennick

    (@wpmuguru)

    The tutorial I wrote for CPTs & custom taxonomies is http://wpmututorials.com/plugins/sitewide-tags-update/

    function my_swt_custom_tax_filter( $listings_tax ) {
    return array( 'listing_category' );
    }
    add_filter( 'sitewide_tags_custom_taxonomies', 'my_swt_custom_tax_filter' );
    Thread Starter homedes

    (@homedes)

    Thank you Ron for your quick reply,
    I used the code but didn’t get any favorable result. I will do more test and try to find the reason.
    Regarding the url redirect to sub site ,i don’t know what is happening .The url redirect is fine for the blog but not for the CPT.

    Plugin Author Ron Rennick

    (@wpmuguru)

    The url redirect is fine for the blog but not for the CPT.

    In the custom fields is there a permalink field/value.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘sitewide tags grabbing Custom post type post’ is closed to new replies.