Is it possible to remove "Posted by" and "Author info" for specific category?
For instance, we have a News Category where Author and posted by is not relevant.
thanks!
Is it possible to remove "Posted by" and "Author info" for specific category?
For instance, we have a News Category where Author and posted by is not relevant.
thanks!
Hi,
in blog.php file (library\tfuse_mods\templates_cat) find this code:
<?php _e('Posted by ', 'tfuse') ?><span class="author"><?php the_author_posts_link() ?></span> <span class="separator">|</span>
<?php if (is_category('CATEGORY NAME HERE')) { _e('Posted by ', 'tfuse') ?><span class="author"><?php the_author_posts_link() ?></span> <span class="separator">|</span> <?php } ?>
ok. i tried:
<?php if (is_category('in the news')) { _e('Posted by ', 'tfuse') ?><span class="author"><?php the_author_posts_link() ?></span> <span class="separator">|</span> <?php } ?>
and <?php if (!is_category('in the news')) { _e('Posted by ', 'tfuse') ?><span class="author"><?php the_author_posts_link() ?></span> <span class="separator">|</span> <?php } ?>
and is still pulls in author and posted by. any thoughts?
Hi,
what is the name of category? Maybe the title is with capital letters? Second code need to work fine but it seems that category name is incorrect.
Cheers,
Max.
Chances are your issue is already answered, but if it’s not, you can always create a new topic.
Add new topicSearching for something specific? Type something and press Enter to search.
Add Reply
You must log in to post.