Query Multiple Taxonomies
Not to show drafts (2 posts)

  1. Vrefr
    Posted 5 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?


  2. Vrefr
    Posted 5 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

  • Query Multiple Taxonomies
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic