I am trying to create a query based on the taxonomy field. To give a bit of background, I have an internal links CPT with the taxonomy field, which pulls from the regular post categories. This is used to create a block of internal links which will be displayed on blog posts. My code will check the post category/categories and then find links that have been assigned with that post category.
Here’s how I am getting the links. I thought that I’d be able to put the actual category name under value, but that doesn’t work. When I checked the database I see no words under value at all, just “1” and that query does work. The aim here is to use an array populated by a variable that holds the current post category/categories.
I must be missing something. 😉 Thanks in advance for helping me with this.
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