WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] fourWPTPv2 theme author link (4 posts)

  1. ultralad91
    Member
    Posted 5 years ago #

    Hey,

    In the theme I'm using fourWPTPv2 at The Rising Phoenix Blog there is the red bar under the title of the post. I want to remove the link to /author/writer because it doesn't work.

    In the theeme files this is the whole code for that small area.

    <div class="post_meta" id="post-<?php the_ID(); ?>">
    <h1><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
    <div class="date_post"><?php the_time('F jS, Y') ?><?php edit_post_link('Edit', '| ', ''); ?></div>
    <div class="post_bar">
    <span class="comment_counter"><a href="#comment">Leave your comment</a></span>
    <strong><span class="author">Published in <?php the_category(', ') ?> by <?php the_author_posts_link(); ?></strong></span></div>

    I can't find anywhere that relates to the_athor_posts_link in the other files for the theme.

    Could someone point me in the right direction so I don't have to have a link that doesn't point to anywhere!

    Thanks

  2. @mercime
    Volunteer Moderator
    Posted 5 years ago #

    <strong><span class="author">Published in <?php the_category(', ') ?> by <?php the_author_posts_link(); ?></strong></span></strong>

  3. ultralad91
    Member
    Posted 5 years ago #

    You've given me the exact same code for that part as was already there?

    How do I change <?php the_author_posts_link part to just say the name without a link?

    Sorry, if I wasn't clear enough previously!

  4. @mercime
    Volunteer Moderator
    Posted 5 years ago #

    change
    <?php the_author_posts_link(); ?>
    to
    <?php the_author(); ?>

    cheers.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.