WordPress.org

Ready to get started?Download WordPress

Forums

Problem with post display - continue reading (4 posts)

  1. lambretta
    Member
    Posted 1 year ago #

    I have set up a child theme based on the twentyten theme. When making a post, however, only three lines are displayed before I get a 'continue reading' tag which does not show up in the html of the post. There is a photo at the start of the post which is only displayed when 'continue reading' is clicked. I really want a 'More tag' after the photo but when I try this nothing happens. The site is:

    http://www.jazzinternationale.com

    I am beginning to think I must have tweaked something in one of the files without realising the consequences. Any help or suggestions would be gratefully appreciated.

  2. alchymyth
    Forum Moderator
    Posted 1 year ago #

    When making a post, however, only three lines are displayed before I get a 'continue reading' tag which does not show up in the html of the post.

    are you referring to the category archive pages?

    if so, edit loop.php in the child theme;
    find (this occurs more than once, change at least the one nearest to the end of the file):

    <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>

    and change to:

    <?php if ( is_search() ) : // Only display excerpts for search. ?>
  3. lambretta
    Member
    Posted 1 year ago #

    Thank you this worked a treat! I can now put in the 'more tag' exactly where I want.

    I don't remember changing anything here by mistake so this must have been the original coding. If this is the case then I am a little confused about why it worked like it did. Is this the way I would expect a category archive to display unless I make the changes you gave me. Can you explain?

  4. alchymyth
    Forum Moderator
    Posted 1 year ago #

    Is this the way I would expect a category archive to display unless I make the changes you gave me.

    not necessary - it totally depends on how the theme is programmed;
    although it seems to be quite a common feature in themes only to show excerpts in archive pages.

Topic Closed

This topic has been closed to new replies.

About this Topic