But this is not really convenient as I have to copy / paste the same code for all my other 12 subcategories and if my client adds a new category he will have to ask me to add a shortcut manually into the code.
So I thought about adding an ACF switch field (true / false) called “catShortcut” to my categories and have every category with the field value set to “true” displayed in my shortcuts links list.
I understand the logic of what I need to achieve but I’m clueless about how to get it done in my code.
Any idea how to make that happen ?
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