WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Insert More tag in TwentyTen child theme inconsistent (9 posts)

  1. marymaru
    Member
    Posted 1 year ago #

    Hi. I'm having issues with the Continue Reading link displaying consistently throughout a site. I'm using the Insert More Tag when creating each blog entry.

    On the index.php page the Continue Reading link appears exactly where I expect it to...which is at the end of the summary text of each blog post. However, when I click on one of the Archives widget links to see a summary of posts for a given month, not all of the blog posts shows the Continue Reading link. This is bizarre, because the very same posts that show the Continue Reading link on the index.php page are missing the link in Archives view. Any tips on how to resolve this? Thanks.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    And what happens if you use the parent theme?

  3. marymaru
    Member
    Posted 1 year ago #

    Assuming I de-activated my child theme correctly...I just changed the directory name of my child theme files by putting a dot in front of the name and all styling is gone now. But the same pesky issue remains. I'm not sure which WP file to look in to even begin trying to troubleshoot this. I looked at loop.php thinking that would be the logical place. But I'm very noob when it comes to reading php so it could be staring me in the face and I wouldn't know it. Any suggestions?

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    It would have been easier to just activate the Twenty Ten theme via Appearance -> Themes.

  5. marymaru
    Member
    Posted 1 year ago #

    Of course...don't know what I was thinking. So I just did that and still the same issue.

  6. alchymyth
    Forum Moderator
    Posted 1 year ago #

    Twenty Ten uses 'the_excerpt()' in archives; controlled in these sections (occurs twice) in loop.php:

    <?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?>
    			<div class="entry-summary">
    				<?php the_excerpt(); ?>
    			</div><!-- .entry-summary -->
    		<?php else : ?>
    			<div class="entry-content">
    				<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
    			</div><!-- .entry-content -->
    		<?php endif; ?>

    remove exactly
    is_archive() ||
    (from a copy of loop.php in your child theme) and you should be fine.

  7. marymaru
    Member
    Posted 1 year ago #

    Genius. Thank you, that worked!

  8. marthaleeturner
    Member
    Posted 1 year ago #

    My "more" tags were displaying correctly on archive pages as well as home, UNTIL I decided I wanted to place them after a shorter amount of text. NOW they don't display. If I move the "more" tag farther down, twenty ten ignores my placement, but does show more text and makes the "continue reading" offer.

    I have tried alchymyth's fix (above) but it doesn't fix this.

  9. marthaleeturner
    Member
    Posted 1 year ago #

    Oh, dear, I changed it in the part of the loop that governs Asides. Now I have changed it later on and, indeed, it is functioning as desired. Thanks alchymyth!

Topic Closed

This topic has been closed to new replies.

About this Topic