How to display posts from specific category using get_option function?
-
I try to display posts from specific category only in a author page, using get_option function like in the code below but it does not work:
<?php query_posts('cat='.get_option('admin_cat')); ?>However, if using the id number, works perfect.
<?php query_posts( 'cat=6' ); ?>How can I use get_option function instead of ID number?
Thanks.
The topic ‘How to display posts from specific category using get_option function?’ is closed to new replies.