Hi there,
I’ve created a custom post type via ACF and displayed it inside a Flex Loop Builder element (so that Flex Loop Filters can be used). I’ve set the sort order to “Alphabetical A -> Z”.
I’m wondering if there’s a possibility to display certain (featured) posts before others (which are in alphabetical order). Is there a way to set that, for instance, based on a specific custom field / (featured) taxonomy?
I know this can be done somehow via Flex Block Builder, but it doesn’t help, because I want to use Flex Loop Filters, so Flex Loop Builder needs to be set.
Not sure if I’m clear enough, but I’m referring to some kind of “Stick to Top” (specific to the default WP posts), which makes some articles pinned to top.
I’m not looking to make the CPT stick to the top in Flex Loop Builder, but more to display some promoted posts before others. Maybe a custom function will help…
I’d really appreciate your support in achieving this.
Kind regards,
Hello,
In the same block, it is not possible, but you can set block at the top of the page. 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/fals to include,exclude posts https://i.imgur.com/bpiJMXL.png
Thank you!
Hi Anamaria,
Thank you for your reply!
I was worried that this might not be possible.
It would be a really useful feature to highlight the enhanced / featured listings (CPT) and make them appear before the others.
Thanks for the suggestion! I thought about that too, but it doesn’t help me much since I want to use the Flex Loop Filters and those listings need to be in the same element as the others.
Thank you for your support!