overriding text displayed by posts_nav_link
-
I’ve specified certain text and formatting for posts_nav_link on my blog, which work fine jammed after the content (the post itself, called by the_content(); That’s cool.
However, at the bottom of the page, the default
?? Previous Entries Next Entries ??
line ALSO shows up!How can I replace the text with my own custom text? Or control this text with css? It’s showing up in a totally different place than where I called posts_nav_link!
==
Here’s the nitty-gritty:
At blog.rhandir.com, I’m trying to use wordpress for a webcomic, and I’m abusing posts_nav_link to make forward/back buttons. Basically, I want buttons under a post from a particular category that will flip forward or back one page (set to be 3 posts). Note that specifying a span inside the
‘ ‘, parameters works pretty well (that’s nice!)The code, minus a lot of /div cruft looks like this:
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="preamble" id="post-<?php the_ID();
?>">
<a>" rel="bookmark"
title="Permanent Link to
<?php the_title(); ?>”>
<?php the_title(); ?>
<?php the_content(‘Read the rest of this entry
<span class=”button”>
a href="https://www.rhandir.com/blog/?p=7">
‹ ‹ first </a>
</span>
THIS IS WHERE I CALL NAV_LINK!
<?php posts_nav_link(' ',' ','
<span
class=”button”> ‹ previous?>
<?php posts_nav_link(' ','<span
class="button"> next
›</span>
',' '); ?>
<span class="button">
<a href="/blog"> today › ›
</a>
</span>
<?php the_category('%, ') ?>
<?php comments_popup_link('comment? (0)',
'comments? (1)', 'comments? (%)', '-'); ?>
<?php edit_post_link('edit?'); ?>
<?php comments_template(); ?>
<?php endwhile; ?>
<?php next_posts_link('« Previous Entries')
?>
<?php previous_posts_link('Next Entries »')
?>
<?php else : ?>
Not Found.<br>
Sorry, but you are looking for something that
isn't here.
<?php endif; ?>
THIS IS WHERE THE DEFAULT TEXT ALSO SHOWS UP.
- The topic ‘overriding text displayed by posts_nav_link’ is closed to new replies.