How do you query a specific tag name?
-
I’m setting up a page that has testimonials from clients, and each testimonial will be a post, and categorized. I was thinking that each testimonial would get a unique tag name, and then I could query that tag name to pull it on to the page. The thing that confuses me is how would the user get the tag to show up in the query? I thought about custom fields, but even then I’m not sure what to put in my $args so that it can pull the tagged post onto the page.
$testimonial_query = new WP_Query('$args');
Any thoughts?
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘How do you query a specific tag name?’ is closed to new replies.