I would like to have 2 other post categories now that do not use the same ACF fields. I do not know how code a function to change field display based on the category of the post. The 2 new post categories can use the default formatting of WordPress posts but the empty main post fields still display if empty because I have put them in the theme template code.
What code based on this format would be best use to show/hide displayed custom fields based on the category type OR at least be able to hide all custom fields if the category is not the same. I am not proficient with this, please explain simply or provide code worked into the existing code provided if possible.
Feel free to ask anything to clarify or point out any issues. Thank you.
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp