Admin
Content Model

Configure ACFs to filter in the post overview

9min

Purple Hub



Summary

In the Post Overview (the list of posts, as found under 'Purple Feeds' in the Purple Hub), you have the option to make your ACFs (Advanced Custom Fields) filterable so that you can find them more quickly across all your content. To make ACFs filterable, you need to set this option when you create them. This article will show you how to do this.



Preconditions



Filterable Field groups

Filterable field types

In ACF exist numerous different fields that can be created as Custom Fields. We made the field types for 'Choices' filterable so that you can have them displayed and filterable in your post overview:

Filterable ACFs, field type 'Choices'
Filterable ACFs, field type 'Choices'

  • Selection: display the values of the dropdown list
  • Checkbox: display the values + TRUE / FALSE
  • Radio button: value + TRUE / FALSE 
  • Button Group: value + TRUE / FALSE 
  • TRUE / FALSE: TRUE / FALSE 

Set up in ACF settings

To set up ACFs, go to the left hand sind menu item in Purple Hub 'ACF'. Once you have created the (ACF) field and saved it, go back to the field you want to make filterable a second time to activate the toggle that will allow you to make the field filterable in the post overview. Don't forget to click on 'Save' to make your changes taking effect. In this example below, we are working with a field for 'Approval' of an article.

Toggel to make ACF fields filterable in the post overview
Toggel to make ACF fields filterable in the post overview


Set up in Post Overview settings

Once you have set up the ACF and made it filterable, you can set its visibility in your post Overview. This can be done in Settings -> Post Overview Settings. You can apply the visibility of your ACF for the 'Top Filter' and the 'Filterable Fields' in the Post Overview. Don't forget to click 'Save' for your changes to take effect. In the example below, we are working with an 'Approval' field for an article.

Top Filter Configuration
Top Filter Configuration

Filterable Fields Configuration
Filterable Fields Configuration


ACFs in Post Overview

If set up correctly, the ACF values you have selected to be filterable will be displayed as filters in the post overview.

Filter in post overview
Filter in post overview

Filter with filtered value in post overview
Filter with filtered value in post overview