use custom fields to call a category slug
-
hi
i am trying to make a template that can be used many times. as such i want to use custom fields to define a category slug and use it within the query_posts . but its not working. can anyone help me out with this
the code i am using is
‘<?php $cat=get_post_custom_values($key = “name”); ?>
<?php query_posts(“category_name=$cat&showposts=4”); ?>’
please suggest what i am doing wrong
thanks in advance
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘use custom fields to call a category slug’ is closed to new replies.