• Resolved rhandir

    (@rhandir)


    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">&nbsp; &lsaquo; &lsaquo; first &nbsp;</a>
    </span>

    THIS IS WHERE I CALL NAV_LINK!
    <?php posts_nav_link('&nbsp;','&nbsp;',' <span class=”button”> ‹ previous  </span>’); ?>
    <?php posts_nav_link('&nbsp;','<span class="button">&nbsp; next &rsaquo;</span>
    ','&nbsp;'); ?>

    <span class="button">
    <a href="/blog">&nbsp; today &rsaquo; &rsaquo; &nbsp;</a>
    </span>

    <?php the_category('%, ') ?>
    &nbsp; &nbsp; &nbsp; &nbsp;
    <?php comments_popup_link('comment? (0)',
    'comments? (1)', 'comments? (%)', '-'); ?>
    <?php edit_post_link('edit?'); ?>

    <?php comments_template(); ?>
    <?php endwhile; ?>
    <?php next_posts_link('&laquo; Previous Entries') ?>
    <?php previous_posts_link('Next Entries &raquo;') ?>
    <?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.

Viewing 1 replies (of 1 total)
  • Thread Starter rhandir

    (@rhandir)

    My god, I am an idiot.
    Sorry.
    For the curious, I forgot that I had cut and pasted the following in, when I was first experiementing:

    <?php next_posts_link('&laquo; Previous Entries') ?>
    `<?php previous_posts_link(‘Next Entries »’) ?>’

Viewing 1 replies (of 1 total)
  • The topic ‘overriding text displayed by posts_nav_link’ is closed to new replies.