Search results for ""

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

Custom filter on a custom post type

ACP – Version 5.1.0
Also ACF add-on

I did not set this up to begin with, so I’m not familiar with all ACP options.

We have this dropdown in a custom post type:

It filters on (assuming) publish date. I wish to either:
1) filter this based on a ACF field date (event_date) instead
2) remove this one, and create a new one just like it to filter on an ACF date

Please advise

Thank you

4 years, 2 months ago

Sorry, here is the correct image:

4 years, 2 months ago
Stefan van den Dungen Gronovius

Hello, you could add an ACF column and filter as follows:

1) Make sure you have our ACF integration for Admin Columns Pro installed
2) Add a new column of the type ‘Advanced Custom Field’ to your overview page and select the field that you want to use for your column.
3) Enable Filtering or leave it be if you want to use our Smart Filter feature. Our plugin will recognize your ACF field and make something useful out of it for (smart) filtering

Let me know if you have any further questions.

4 years, 2 months ago

I see what the issue is, we already have a smart filter for “Future / Past” therefore doesn’t appear we can have an option to filter by “monthly” as well.

How do I remove the filter for publish date?

4 years, 2 months ago
Stefan van den Dungen Gronovius

Multiple smart filters can be displayed simultaneously.

The drop-down filter for Publish Date is added by WordPress.
You can only disable that filter by using the following hook in your custom code.

add_filter( 'months_dropdown_results', '__return_empty_array');

4 years, 2 months ago

You must be logged in to reply to this topic.