Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    You have to pass the current post id.

    You could store the current post id and then pass it to exclude.

    <?php
    if (have_posts()) :
       while (have_posts()) : the_post();
          $current = $post->ID;
          // Post content
       endwhile;
    endif; ?>

    Then

    <?php echo do_shortcode('[ajax_load_more exclude="'. $current .'"); ?>

    Thread Starter alexmattorr

    (@alexmattorr)

    Thanks dcooney. Did not know there was the exclude parameter for the plugin. Appreciate it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Do not show current post in load more’ is closed to new replies.