WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type UI
[resolved] Custom Post Type UI and categories and tags not working (10 posts)

  1. bunnykins
    Member
    Posted 4 years ago #

    When I create a post type to have categories which this plug in allows and I click on the category menu it does not show any entries yet the number next to the category says there are entries in there.

    http://wordpress.org/extend/plugins/custom-post-type-ui/

  2. MichaelH
    Member
    Posted 4 years ago #

    That's not the plugin causing that, that's the way WordPress works right now.

    Hopefully that kind of thing will get resolved in the future.

    You might create a ticket in trac for that.

  3. bunnykins
    Member
    Posted 4 years ago #

    I never can find any thing useful in the codex just a lot of writing and nothing that answers the question of why I was looking at it.
    So how do you create a ticket in the trac?

  4. bunnykins
    Member
    Posted 4 years ago #

  5. scribu
    Member
    Posted 4 years ago #

    To make category archives display all posts, regardless of post type, add this piece of code in your theme's functions.php:

    function any_ptype_on_cat($request) {
    	if ( isset($request['category_name']) )
    		$request['post_type'] = 'any';
    
    	return $request;
    }
    add_filter('request', 'any_ptype_on_cat');
  6. bunnykins
    Member
    Posted 4 years ago #

    Yay that worked so is that going to be added to 3.1?

  7. Ian
    Member
    Posted 4 years ago #

    This seems to work, but at the top of the page on paginated category listings, it often says "Nothing found for" as if it was only reading the posts in there and once it gets to the end of the post count (not counting custom types) it titles the page as if there are no posts.

    any fix for this?

  8. marcycapron
    Member
    Posted 4 years ago #

    AHHH scribu thank you!!!!

  9. Devin Walker
    Member
    Posted 3 years ago #

    Scribu, you're the bomb.com, thanks!

  10. velograph
    Member
    Posted 3 years ago #

    @scribu Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic