Filter for the Flex Block Using ACF Select Field

Posted in: Newspaper
Post count: 70

Hello,
Is it possible to implement a filter for the ‘flex block/flex loop’ using an ACF (Advanced Custom Fields) select field? For example, if I select ‘Book’ from the select field, could I configure it to display only posts related to books within the ‘flex block/flex loop’?

Thanks in Advance

Post count: 27744

Hi,

If you have the latest version 12.6, you can filter the blocks using custom filed, the custom filed needs to be the type of text assigned to the posts, or CPT and use this value in the post id or use type acf type true/falser to include,exclude posts https://i.imgur.com/bpiJMXL.png

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.