Support » Themes and Templates » Novice PHP question

  • I’m using the excerpt for my archive and category pages and would like to put a “Read this post” link at the bottom of the excerpt without the link showing up when the post is unfolded.
    I’ve got this working: <?php if(is_category() || is_archive()) { echo '<a href="#">Lire la suite...</a>' ; } ?>
    But when I put <a href="<?php the_permalink(); ?>"> where the “#” is, it doesn’t work.
    Sorry to be so daft, but can anyone tell me what I’m doing wrong – I’ve already pulled out most of my hair!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Novice PHP question’ is closed to new replies.