the_title as category in query
-
My question is rather simple. Is it possible to use the title of the current page as the category in a query array?
I guess it would look somewhat like this but I haven’t got it to work:
<?php // The Query query_posts(array( 'post_type' => 'product', 'cat' => the_title() ) ); ?>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘the_title as category in query’ is closed to new replies.