• Resolved Albert1955

    (@albert1955)


    I want to remove or hide the “by author-name” on certain posts only
    have found this code to add to single.php and archive.php

    <?php if ( has_tag(‘stories’) ) {
    echo ”;
    } else {
    echo ‘by ‘; the_author_posts_link();
    }
    ?>
    where posts with tag of stories
    But I have no idea where to put it in the files
    It says in the author area of the files but I have no idea where that is
    Using Thematic with a child theme
    Any assistance as allways gratefully appreciated
    Albert

Viewing 2 replies - 1 through 2 (of 2 total)
  • It’s different in every theme. In Thematic you can either write a function named childtheme_override_postmeta_authorlink or you can use a filter named thematic_postmeta_authorlink. Look in Thematic’s content-extensions.php file to see how it works. Add your new code in your child theme’s functions.php file.

    Thread Starter Albert1955

    (@albert1955)

    thanks mate
    great to get help so quickly
    will give it a try,
    Albert

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove The Author From Certain Posts’ is closed to new replies.