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?
Later edit:
I apologize, it was my mistake that I wrote in admin option the category name instead of its id. However a code would be helpful to read both variants, like:
if admin option the category is an id
display its id
if in admin option category is a name
display its name
Thanks