• Resolved cosmocanuck

    (@cosmocanuck)


    Hi all!

    I’m wondering why my “Read More” tag is being ignored in my WP theme. The entire post is displayed. I can’t see why…

    Here’s the page in question:

    https://ediehats.com/home-test

    Here is my code around the post:

    <?php query_posts('cat=1&showposts=1'); ?>
    		<?php if (have_posts()) : ?>
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    
    <small><em>Posted on <?php the_time('F jS, Y') ?> by <?php the_author_posts_link();?>. <a href="https://www.ediehats.com/archives/author/<?php the_author(); ?>/feed">Subscribe to this author's posts.</a></em></small>
    
    <div class="entry">
    <?php the_content('Read the rest of this article','','')><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Read More</a>
    				</div>
    
    			</div>
    
    		<?php endwhile; ?>

    When I had it as simply “the_excerpt”, I get the first 55 words as expected. But changing it to “the_content” I get the entire thing, no matter what.

    Am I just missing something obvious? I’ve never had this problem before…

    Many thanks!
    Adam

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘My Read More doesn’t work’ is closed to new replies.