Support » Plugin: WordPress MU Sitewide Tags Pages » [Plugin: WordPress MU Sitewide Tags Pages] Post Format not passed through to main site

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

    (@wpmuguru)

    MultiSite Guru

    You may want to fill in the blanks a bit with what code you have, etc.

    SWT doesn’t pass through post format by default.

    Thanks Ron. I’m using the Genesis News Child theme (version 2.01). This is what I have in my theme’s functions.php:

    // WAA - ADD POST FORMATS
    add_action( 'after_setup_theme', 'news_formats', 11 );
    function news_formats(){
         add_theme_support( 'post-formats', array( 'status', 'video', 'image', 'link', 'gallery' ) );
    }
    // add post-formats to post_type 'page'
    add_post_type_support( 'page', 'post-formats' );

    It seems to be passing it through on the other site but not on this site.

    Plugin Author Ron Rennick

    (@wpmuguru)

    MultiSite Guru

    You also need the filter in this post http://wordpress.org/support/topic/getting-buddypress-and-sitewide-tags-to-play-nicely?replies=46#post-2127136

    If all of your sites use the same theme then you can add that to the theme functions file.

    Thanks Ron. I added the following after the above but it didn’t work.

    add_filter( 'sitewide_tags_custom_taxonomies', 'my_swt_custom_tax_filter' );
    function my_swt_custom_tax_filter( $taxonomies ) {
    	$taxonomies[] = 'post_format';
    	return array_unique( $taxonomies );
    }

    Did I miss something? (Strangely, it also seemed to trigger a false plugin update notification for the linkable title & php widget plugin by Lamb-whatever. It went away when I removed the above)

    Ron, In the thread you referred me to http://wordpress.org/support/topic/getting-buddypress-and-sitewide-tags-to-play-nicely/page/2?replies=46#post-2131772, Ipstenu says:

    I know that SWT can pull in post FORMATS (like links and asides) . . .

    That is exactly what I want but it doesn’t conform to my experience or your words above. Also, there is some discussion about putting the filter in an MU-Plugins plugin. Is that what is missing in my attempt? I put it in functions.php because, as you said, I’m using the same theme on all my sub-blogs, but that didn’t work, and it created some other weirdness like the false notification mentioned above and it seemed to really slow down my site.

    Ron, I tried to put the above code in an mu-plugins folder plugin and it caused server errors HTTP Error 500 (Internal Server Error). I’m not a coder so maybe it was a syntax error but I don’t think so. Any ideas?

    Plugin Author Ron Rennick

    (@wpmuguru)

    MultiSite Guru

    I know that SWT can pull in post FORMATS (like links and asides) . . .

    @ipstenu did not say it did it out of the box just that it can pull post formats… using the snippet of code I linked to above.

    If you are getting a 500 error then most likely your browser converted the quotes to encoded quotes. Paste the code into a text editor, recopy the text in the text editor and paste into your other file.

    Hi Ron:

    Paste the code into a text editor, recopy the text in the text editor and paste into your other file.

    I did this and tried again. Still no luck. I tried it both in functions.php and as a separate mu-plugins plugin (with latter still producing a 500 error). Any other thoughts?

    Plugin Author Ron Rennick

    (@wpmuguru)

    MultiSite Guru

    It’s small enough you could try just typing it into the file manually.

    Hi Ron: Which file do you recommend trying it in first? Functions.php or a separate plugin in the mu-plugins file? (only the latter was causing HTTP 500 errors)

    Plugin Author Ron Rennick

    (@wpmuguru)

    MultiSite Guru

    Try functions.php in the theme on the source site.

    It’s small enough you could try just typing it into the file manually.

    Still didn’t work – Post format type is not passed through to main blog.

    Plugin Author Ron Rennick

    (@wpmuguru)

    MultiSite Guru

    That filter will not affect existing posts, only new ones.

    Thanks Ron. I figured as much so I tested it with newly created posts and it didn’t work. What might have gone wrong?

    Plugin Author Ron Rennick

    (@wpmuguru)

    MultiSite Guru

    I just tested that filter with WP 3.5 alpha and it still works. I had a post format enabled theme on both the tags blog and the site where the post was originally published.

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘[Plugin: WordPress MU Sitewide Tags Pages] Post Format not passed through to main site’ is closed to new replies.