WordPress.org

Ready to get started?Download WordPress

Forums

Query Multiple Taxonomies
Not to show drafts (2 posts)

  1. Vrefr
    Member
    Posted 3 years ago #

    Hi there,

    now the taxonomies in widget are shown only if any post was created in that taxonomy, this prevents situation when visitor clicks on taxonomy and gets "nothing found". But if there is a draft post made in this taxonomy it's shown in the widget. Thus when user clicks its says that "nothing found".
    How to make so that the taxonomy is shown in widget only if the post in it is published?

    Thanks!

  2. Vrefr
    Member
    Posted 3 years ago #

    I believe something like $post_status should be used.
    But I'm not sure where to modify it? or is there a possibility to do it without hacking the code of plugin?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic