• Resolved Sparky

    (@sparky)


    I tried modifying a code so that on the home page and all archives types of pages (category, date) it would have only the excerpt and then a “continue reading” link (without using the ‘more’ thing in the user panel), but if it’s the single page then it would have the whole story without that link. I modified another code but it doesn’t work…. ??

    <?php if(is_home() || is_archive()) {
    the_excerpt();
    echo '<a href="<?php the_permalink() ?>" rel="bookmark">Continue Reading</a> | '
    } else {
    the_content();
    } ?>

    It works fine when I take out the echo line. What I want it to do is have the excerpt (the_excerpt();) and then the link to “continue reading”…

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘If and Else’ is closed to new replies.