WordPress.org

Ready to get started?Download WordPress

Forums

Show posts of any status for a Custom Taxonomy on Edit Posts? (2 posts)

  1. tzeldin88
    Member
    Posted 4 years ago #

    In the Admin, on EditPosts (edit.php), how can I see ALL posts for a Custom Taxonomy -- regardless of the status of the post?

    For example, if I have a Custom Taxonomy called "Color", the url query "edit.php?color=red" is finding ONLY posts that have post_status=publish. However I would like it to find any post (including Draft, Pending, and even my custom statuses) that have "red" for Color.

    I haven't found anyone else asking about this, so I wonder if I'm just missing something obvious here. I know I can go to the Custom Taxonomy page that lists all its terms, with a count of posts for each term as a query-link. But that link also finds ONLY Published posts, even though the Count includes posts of any status.

    Any advice much appreciated!

  2. tzeldin88
    Member
    Posted 4 years ago #

    Sorry, a bit more info...
    Though this does NOT work as expected (finds only Published posts):
    edit.php?color=red
    this DOES work as expected (finds only Draft posts):
    edit.php?color=red&post_status=draft

    However, filtering for a Post_Tag (rather than a Custom Taxonomy) DOES find any post, regardless of the post_status:
    edit.php?tag=baseball

    I have tried using post_status=0, post_status=all, and post_status= but they all behave the same as leaving it off entirely.

    I'd also love to know how to implement this kind of search/filter for EditPosts, in terms of creating a UI.

Topic Closed

This topic has been closed to new replies.

About this Topic