Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter janbrokes

    (@janbrokes)

    Hello does anyboday have any any idea?

    Thread Starter janbrokes

    (@janbrokes)

    For others I found this solution:

    $nextPost = get_next_post(true);
     $nextURL = get_permalink($nextPost->ID);
    echo '<a class="next-product" href="';
    echo $nextURL;
    echo '">next</a>';
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Next post link snippet’ is closed to new replies.