Forum Replies Created

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

    (@davidinooo)

    No i’ve got no errors. When plugin is active i cannot detect (as i do when it’s disabled) when i’m viewing first post (no prev link active) and when i’m viewing latest post (no next link active)… Links are always active… i think there is some collision with the get_adiacent_post value, have you got idea ?

    <span id=”next”>
    <?php next_post_link(‘%link’, ‘Previous’); ?>
    <?php if(!get_adjacent_post(false, ”, false)) { echo ‘<span>Previous</span>’; }
    </span>

    <span id=”prev”>
    <?php previous_post_link(‘%link’, ‘Next’); ?>
    <?php if(!get_adjacent_post(false, ”, true)) { echo ‘<span>Next</span>’; }
    </span>

Viewing 1 replies (of 1 total)