• Forum
  • FAQ
  • Docs
Notice: In order to post a support question you have to have an account and be logged in.
Register  or  Login
  1. 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!

    jomo
    1 year ago
  2. Hi,
    you would like this only for category page or for single post page too?

    Thanks.

    Max
    1 year ago
  3. both category and single post.

    jomo
    1 year ago
  4. 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>
    

    and replace with:
    <?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 } ?>
    

    Cheers,
    Max.

    Max
    1 year ago
  5. 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?

    jomo
    1 year ago
  6. 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.

    Max
    1 year ago

Add Reply

You must log in to post.

 

Add a new topic!

Chances are your issue is already answered, but if it’s not, you can always create a new topic.

Add new topic

Search forums

Searching for something specific? Type something and press Enter to search.