Tanzaku category query
-
Hi,
I am using the Tanzaku theme. I am trying to set up template pages with custom field – category=******I then want the template to only show posts from that category.
Can you advise what I need to do code-wise,I have found this part in the code:
// use this code if you want filter items by category. $arr_catID = array(); foreach( get_the_category() as $cat) $arr_catID[] = $cat->cat_ID; if ( count($arr_catID) ) $new_query_arg .= '&cat=' . join(',', $arr_catID);
Which part of the above should I edit to find what category custom field it is and then only show posts from that category????
Please help – its driving me mad.
Thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Tanzaku category query’ is closed to new replies.