Advanced Custom Fields displaying on tag pages
I have edited Advanced Custom Fields before but never set anything up from scratch, always relied on developers. But I’m wanting to do a very specific thing and I was hoping I could do it by myself.
I just wanted to add a few fields in the usual WordPress tags taxonomy, then have them appear on the frontend. I basically want to add related tags (I’m calling topics) on the tags page. So a field that I can input other tags and have them click to send them to those. I may add a couple other basic text fields, but I just want to get the fields to appear on the page. I’m using a theme that may have a ton of things that are confusing what normally is seen, so if it helps to copy and paste a chunk of code from it, I can.
I have so far created the Field Group "tag_details" and the Field "related_topics". I have the field appearing on the backend of WordPress correctly, when creating/editing tags. But I can’t get it to appear on the front end.
I’ve tried different things from directions found here:
I’ve tried inputting code in various places in tags.php. But nothing ever happens. I don’t know if I have to put it in a very specific place, or it should be part of the other code on the page so it won’t work just copy and pasting what is being suggested on those pages. Obviously I’m replacing things with the correct field group and field. But nothing is appearing.
Again, my knowledge is limited. But I was hoping this very specific use of ACF would be something I could pull off. Just about everything else I’m doing came already with the premium theme I purchased. Thanks for any help, and I can provide more info if needed.
Leave an answer