WordPress.org

Ready to get started?Download WordPress

Forums

Clicking category link takes me to post-summary page with dead 'more' '...' link (3 posts)

  1. pbspirits
    Member
    Posted 3 years ago #

    On my site at http://www.enjoypb.com when you click on the category list (i.e. positive vibes) you're taken to the post-summary page (I only have one post up right now). The title is linked to the full post but, the [...] or, more link, isn't expanding the text to the full post.

    Any idea how I could fix this [...] link so my readers won't have to figure out the title link (they're not too blog-savvy yet).

    My theme is WP-Bats and I'm using WP 3.0.1 on my own LAMP server.

    Thanks!

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Your category template file is using <?php the excerpt();?> instead of <?php the_content;?>. Simply edit the the file (possibly called category.php) and replace <?php the excerpt();?> with <?php the_content;?> and then start using the more tag in your posts..

  3. pbspirits
    Member
    Posted 3 years ago #

    Thanks esmi. For any future readers I wasn't sure how to change an if/else statement so I just changed the word 'excerpt' to content and it works great. For my theme of WP-Bats this was in the index.php file in the theme's directory. Thanks for your help.

    Before:
    <div class="posts-content">
    <?php if(is_category() || is_archive() || is_search() | is_tag()){ ?>
    <?php the_excerpt() ;?>
    <?php }else{ ;?>
    <?php the_content ("Read the end of this entry ...");?>
    <?php } ?>
    </div>

    After:
    <div class="posts-content">
    <?php if(is_category() || is_archive() || is_search() | is_tag()){ ?>
    <?php the_content() ;?>
    <?php }else{ ;?>
    <?php the_content ("Read the end of this entry ...");?>
    <?php } ?>
    </div>

Topic Closed

This topic has been closed to new replies.

About this Topic