WordPress.org

Ready to get started?Download WordPress

Forums

Ultimate Post Type Manager
Bug - Messes up global loop (3 posts)

  1. Kimb Jones
    Member
    Posted 3 years ago #

    Worked out that this plugin replaces the 'global' loop so it includes ALL Custom Post Types and not just the default 'post'.

    When plugin is active and CPT created with 'Public' setting these items will show up on your default homepage feed or anywhere you use the general loop. You need to re-work your query_posts to fix.

    I moved to another Custom Post Type UI manager and this did NOT do the same thing so I have had to move away from this plugin which is a shame as I really like the [CONTENT] feature.

    If this problem could be fixed or at least optional that would be a good move.

  2. XYDAC
    Member
    Plugin Author

    Posted 3 years ago #

    Hey,

    This plugin adds all other post types to homepage and feeds, didn't update that function , in recent release.
    You can change the function as you want, and i'll add gui for doing this in next release.

    Either comment line 673 to remove all post types. where line 673 is
    add_filter( 'pre_get_posts', 'xydac_posts_home' );

    or you can also make changes in the xydac_posts_home function in line 273 of index.php file.

    Do let me know.

    Regards,
    -Xydac

  3. XYDAC
    Member
    Plugin Author

    Posted 3 years ago #

    You can also set the public variable for a post type to false.

    Regards,
    -Xydac

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic