WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Previous and Next: Posts Backwards (2 posts)

  1. prncessr14
    Member
    Posted 8 years ago #

    I just created a photoblog at:

    http://thatnight.net/photo/

    And added the "prvevious" and "next links" on my main page using:

    <div class="navigation"><?php posts_nav_link(); ?></div>

    However, on the page, it seems that "previous" and "next" have been mixed up. "Next" should by replaced with "Previous"

    Where do I go to fix this?

    (P.S. I'm incredibly new with that. Please be explicit with advice:))

  2. CrazyDrumGuy
    Member
    Posted 8 years ago #

    A div is a block-level element, so each div will appear on its own line by default. You can fix this through a few different ways. One way would be to change those divs to spans, because a span is an inline element. Alternatively, you could use CSS to make your divs inline.
    div.alignLeft, div.alignRight { display: inline; }

    EDIT: The code is different in the two threads you posted! My answer applies to the code:
    <div class="navigation">
    <div class="alignleft"><?php posts_nav_link('','','« Previous') ?></div>
    <div class="alignright"><?php posts_nav_link('','Next »','') ?></div>
    </div>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.