Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics

Custom Taxonomy Filter Issue

I recently noticed that when I try to filter by a category custom taxonomy, only the published values are loads in the drop down. I don’t remember this restriction before. Was that a recent change?

I would suggest that the values loaded match the post status currently selected.

8 years ago
Stefan van den Dungen Gronovius

Hi Dirk,

I don’t think this is a recent change. Besides that we also cache the results of the dropdown and since we do this we don’t look at the current status in the overview. I’ve create a ticket for your suggestion on Github as a feature request.

Thanks for your feedback!

7 years, 12 months ago

Thanks, that would be really helpful. When does the cache get refreshed?

7 years, 12 months ago
Stefan van den Dungen Gronovius

The cache is refreshed every minute. We’ve build in the cache because the queries to get the used data can be quite heavy.
You can also disable the cache by using this filter (not recommended for big sites)

add_filter( 'cac/is_cache_enabled', '__return_false' );

But since we don’t take the post status into account, this should not fix your problem.

7 years, 12 months ago
Daniel Stadeli

Hi, I have the same problem, categories of custom post types cannot be filtered if they posts are not published. But the whole point of this is filtering before the items are published so they can be worked on properly. Any prograss?
I do think this is my problem, see video:

3 years, 2 months ago

You must be logged in to reply to this topic.