Hello everybody,
I have this variable in my post page wherein I save only one value, a tag, that I’ll use to associate that particular post with. I’m using this tag to display all other posts with the same tag, sort of like a related section of the page.
Now I was wondering if I can ask you guys for a script that would allow me to display how many posts uses a particular tag. The variable’s name is ‘primary_tag’ which is shown using the_field(‘primary_tag’).
Thanks!
Hi @GeekyPinoy
I’ll take a guess that primary_tag is a text field.
IF so, you can easily query the number of posts following this tutorial:
http://www.advancedcustomfields.com/resources/how-to-query-posts-filtered-by-custom-field-values/
Thanks
E