• Resolved prncessr14

    (@prncessr14)


    I just created a photoblog at:

    https://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:))

Viewing 1 replies (of 1 total)
  • 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>

Viewing 1 replies (of 1 total)
  • The topic ‘Previous and Next: Posts Backwards’ is closed to new replies.