I have a options page and i use this code.
I want this, I add author id on sometext field (e.g 3,2,5,11 ) and my author.php redirect custom author page.
My author.php
<?php $post = $wp_query->post;
$options = get_option('sample_theme_options');
if (is_author( array($options['sometext']) ) ) {
include(TEMPLATEPATH . '/brand.php');
}
else { include (TEMPLATEPATH . '/customauthor.php');
}
?>
Im adding Some Text field number like this 3,2,5,11
<?php echo $options['sometext']; ?>
And code Output: 3,2,5,11
But my author.php not working good. Just first id working other id not working.
How can i fix it?
