Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have the same question. I suppose most people just use the next_post_link tag by itself, which works fine if your next post and previous post sections don’t contain a bunch of nested divs and graphics attached. But if they do, you ought to be able to create some sort of conditional using the next_post_link tag or something related.

    I’ve tried
    <?php if (next_post_link() != '') : ?>

    and
    <?php if (next_post_link()) : ?>

    neither of which cause a PHP error, but both of which wreak havoc on the CSS. Also, I’ve solved the equivalent problem on the index page by using the magic code

    <?php if (!(is_home() && !is_paged())) : ?>
    which I found elsewhere in these forums. Can anyone help?

    I’d appreciate this too. Alternately, if there were a way just to get rid of the Email tag and use a separate link for that (with wp-email, perhaps), that would work too. Any tips?

    A double dash is a typewriter’s way of mimicking an em-dash, just as underlining is (or was originally, at least) a way of indicating italics. You can get a real em-dash in WordPress by using three dashes in a row—like this. You can do it with a space on either side, too — like this. It’s better than the two-dash look, anyway.

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