Support

Search results for ""

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

Show / hide columns based on current filtered category

Is it possible to hide:

1. AC filter dropdowns
2. AC columns

based on which category of post (standard, not CPT) is being viewed (filtered). I imagine this could be done via a filter in functions.php?

5 years, 5 months ago
Stefan van den Dungen Gronovius
Developer

1) You can use the default WordPress hook to remove columns from the overview based on specific params.
https://codex.wordpress.org/Plugin_API/Filter_Reference/manage_posts_columns
Just make sure you run this hook after we did our magic. Priority 201 would do the trick since we use priority 200 to manage the columns.

2) The hook above does not work for the filters. We don’t really have a hook to disable the filtering on the fly. When there are no options for the drop down it does not show the filter, but that is caches so probably won’t work in your case. Instead, I recommend that you have a look at our new Smart Filtering feature. This does not show any filter by default. This new feature is available in the recent 4.4 version. It may be that your environment does not recognize the update. In that case, you’ll have to download the latest version from our website and install it manually.

5 years, 5 months ago
fraser

That’s fantastic. Thank you for your help.

5 years, 5 months ago
Stefan van den Dungen Gronovius
Developer

You’re welcome. I will close this topic.

5 years, 5 months ago

You must be logged in to reply to this topic.