• 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:

    https://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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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. ?>
    Thread Starter lambretta

    (@lambretta)

    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?

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with post display – continue reading’ is closed to new replies.