• I was trying to find a way to add the previous and last links in my entries, but I only want it to be visible in the individual pages, and not the main index. I got this off the codec, and took an arrow off : <?php previous_post(‘« %’, ”, ‘yes’); ?> | <?php next_post(‘% » ‘, ”, ‘yes’); ?>

    I stuck it somewhere in “the loop,” (below the the the_content in my main template page), and it worked… somewhat. I like how it is in the individual page, but in the main index, there’s this | floating at the end of my posts. How can I get rid of that on the main index, but not in the individual posts?

    Oh, and I’m modifying “The Pool” theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The easiest way: make a single.php template (e.g. by saving your index as single.php and editing it to your liking).

    Thread Starter mystical

    (@mystical)

    So can I just take that code out of the loop on the main index?

    Also, where can I find a blank template? There was one, but I kind of deleted it without thinking that I might need it (and it’s not in the wp-content/themes/ folder).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Previous/Next links’ is closed to new replies.