WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: WordPress MU Sitewide Tags Pages] Grabbing Custom Post Type Posts

[Resolved] [Plugin: WordPress MU Sitewide Tags Pages] Grabbing Custom Post Type Posts

  • I’m using this tutorial to try to do the filter thing to pull posts from a custom post type into my SWT blog:

    http://wpmututorials.com/plugins/sitewide-tags-update/

    I placed the following in the functions.php of the theme of the child blog using the custom post type “auctions”, but the SWT blog (my main site) still is not importing the “auction” posts:

    function my_swt_post_type_filter( $auction ) {
    $auction[] = array( 'auctions' => true );
    return $auction;
    }
    
    add_filter( 'sitewide_tags_allowed_post_types', 'my_swt_post_type_filter' );

    I just used the code from THIS support forum topic and modified it as I thought correct, as suggested by someone in the comments of the tutorial I linked at the beginning of this post. I’m sure my code is incorrect, but figured I should give it a go and have a jumping off point before asking for help (help? Please?)

    ETA: I also created the “auctions” post type on my SWT blog, and added the above code snippet to the tags blog’s functions.php as well. No joy.

    http://wordpress.org/extend/plugins/wordpress-mu-sitewide-tags/

Viewing 15 replies - 16 through 30 (of 40 total)
  • Plugin Author Ron Rennick
    Participant

    @wpmuguru

    Make sure my_swt_post_type_filter is not a duplicate function name.

    archersify
    Member

    @archersify

    Hello Ron,

    Thanks for the reply. I changed my_swt_post_type_filter to my_swt_hotel_type_filter just to make sure it has no duplicate. Still no luck.

    Im using Custom Post Type UI and Advanced Custom Fields.

    Regards,
    Archer

    Plugin Author Ron Rennick
    Participant

    @wpmuguru

    I’ve heard of the plugin but haven’t used it. You may have to manually register the post type in your theme functions file or a plugin.

    archersify
    Member

    @archersify

    Hello Ron,

    I will try to have the post types manually registered in my function. I will let you know later if that worked.

    Thanks,
    Mark

    archersify
    Member

    @archersify

    Ron,

    Ive tried installing the custom post types manual but i still get the whitescreen after adding a new post for the custom post type.

    Hope you can shed some light.

    Thanks,
    Mark

    Plugin Author Ron Rennick
    Participant

    @wpmuguru

    Whenever you have a white screen there should be an error recorded in your error logs. This is one where you’ll have to track down the offending plugin/theme.

    archersify
    Member

    @archersify

    I am not getting any error on the error_log located on my root directory.

    Any other possible solution or source of the problem?

    These are the things ive tried so far.
    1. Manual creation of custom post types instead of using custom post types UI

    2. Custom post types are registered on both the main site and the sub-site (source site).

    Plugin Author Ron Rennick
    Participant

    @wpmuguru

    Your web account control panel should have an error log that you can look at.

    When you are running a network don’t expect to find anything in the error_log files. Error logging to those files is disabled when the network is enabled.

    archersify
    Member

    @archersify

    Hello Ron,

    I was able to make this to work. Thanks for taking time replying to me. The problem was with Advanced custom fields plugin. I have to remove it and installed wordpress types. 🙂

    Best Regards,
    Mark

    Plugin Author Ron Rennick
    Participant

    @wpmuguru

    Thanks for letting me know 🙂

    archersify
    Member

    @archersify

    Ron,

    Though i was successful on getting the custom post type displayed on my main site, i am having an issue on its featured image. Its seems that the featured image from the custom post type is not included in the transfer? It works on the regular posts though.

    Regards,
    Mark

    Plugin Author Ron Rennick
    Participant

    @wpmuguru

    I wasn’t aware there was any distinction of the featured image between regular posts and CPTs.

    I’ll put that on the list to look at after we put out the next version. I have one last thing to track down with the dev version.

    archersify
    Member

    @archersify

    Hi Ron,

    It would be great if you could include that feature. 🙂 I will be waiting for this as this is a crucial part of my development.

    Best Regards,
    Mark

    Plugin Author Ron Rennick
    Participant

    @wpmuguru

    If you check my profile page http://profiles.wordpress.org/users/wpmuguru/profile/public/ you’ll see I have almost 30 plugins there. If I spend an hour a day across those plugins it works out to about an hour a month per plugin.

    If you really need the feature for your project then look at hiring a developer to see if they can track the issue down. (I work full time and am not taking any projects.)

    archersify
    Member

    @archersify

    Hi Ron,

    I appreciate taking your time replying. 🙂 Im not asking you actually to do it for me.. 🙂 What i meant was i will wait for the next version to come up with that feature. Appreciate everything and for this plugin youve made.

Viewing 15 replies - 16 through 30 (of 40 total)
  • The topic ‘[Resolved] [Plugin: WordPress MU Sitewide Tags Pages] Grabbing Custom Post Type Posts’ is closed to new replies.