WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] About Page at the bottom of each article (5 posts)

  1. rainer23
    Member
    Posted 3 years ago #

    Don't know what happened, suddenly below each article appears the first paragraph of the About Page of my blog with a link to the About Page.

    Any idea how to turn this off? Thanks for any suggestion!

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    some themes, such as twenty ten, are showing the author description below each single post:
    for twenty ten, the code is in loop-single.php and starts with:
    <?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?>
    and ends with <?php endif; ?> about 15 lines further down.

    you theme might be different

  3. rainer23
    Member
    Posted 3 years ago #

    Thanks alchymyth, right I'm using the twenty ten theme. You mean to say by putting a // before <?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?> in loop-single.php file this will be turned off?

  4. alchymyth
    Forum Moderator
    Posted 3 years ago #

    nope - you will just get an error message, because you are commenting the start of an if statement, but leave the end of it open.

    http://php.net/manual/en/language.basic-syntax.comments.php

    this might work:

    <?php /* if ( get_the_author_meta(............
    .....
    <?php endif; */ ?>

  5. rainer23
    Member
    Posted 3 years ago #

    Thanks, that worked!

Topic Closed

This topic has been closed to new replies.

About this Topic