Hi,
By using CPT and ACF I created a gallery of the images in Custom Posts.
The customposts have a taxonomy called Categorie.
I would love to create buttons to filter the gallery to show only the images which have the selected (1 or more) categories. Other images should disappear.
I tried the filter block and the Taxonomy Terms. But I don’t get it to work.
Thanks for your reply.
I followed the tutorial and it works in back-end. But in frontend I don’t see the buttons to filter.
So I watched the video and noticed that frontend rendering was toggled on (didn’t find that in the tutorial).
But as soon this is toggled on, the buttons are visible, but the posts are gone.
Could you possibly provide a temporary access to this installation, so I may see what’s going wrong?
If this is possible, for security and privacy reasons, kindly send the details using our paste website, by sharing the link generated: https://paste.cwicly.com/ to support@cwicly.com or by PM.
Thank you for providing temporary access, @Lijn-B!
The reason your filter wasn’t functioning correctly was due to the omission of specifying the field in your Taxonomy Query.
I have adjusted it to use the slug, and now your filters operate as intended on the frontend.
I realise that this error might have arisen because our Create a filter guide missed this step.
Rest assured, this error has been noted and will be fixed as soon as possible.
As for the post’s images disappearing with frontend rendering on, this was caused by your having the ‘Require ACF API REST’ setting enabled, but not enabling ‘Show in REST API’ for that specific field group.
I have enabled it for you, and now the background images appear as expected on the frontend.
Please let me know if this is the case on your end.
If you were not aware, to view ACF Groups with Frontend Rendering, the API REST must be enabled.
To do this, you can either enable the “Show in REST API” setting for the desired ACF Groups or turn off the “Require ACF API REST” option in Cwicly Settings → Advanced Settings.