get Taxonomy Terms
-
Hi,
I create taxonomies and related them though Pages on “Attach to Post Type”.
On a particular page, I have added on Taxonomy “city” the value “New york”.
Not i want to use a PHP to get the value from taxonomy “city” to use ar a formula for filtering some blog posts.
The filter should work something like this:
$args[“post_type”] = “bands”;
$args[“posts_per_page”] = 5;
$args[“band_city”] = get_query_var( ‘city’ );
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This last one is returning emptyThanks!
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘get Taxonomy Terms’ is closed to new replies.