• Hello,

    Just downloaded and loaded Ajax plug-in. Really cool!

    1. I am hoping to stop the duplicate posts from loading in Ajax with other posts on the front page. I inserted the following CSS code (found in support forum) into the default template but duplicate posts still load:

    <?php
    if($do_not_duplicate){
    $post__not_in = implode(“,”, $do_not_duplicate);
    }
    echo do_shortcode(‘[ajax_load_more post__not_in=”‘.$post__not_in.'”]’);
    ?>

    Please let me know what I did wrong.

    2. Also, how do I make the load more posts have the same look as the other ones on the front page?

    Thank so much for your help!

    Best,
    Josh

    The page I need help with: [log in to see the link]

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

    (@dcooney)

    Hi @joshdshapiro,
    Thanks for trying the plugin.

    1. Well, this wont work unless you actually build an array of post IDs to exclude. Notice in the example how the $do_not_duplicate array is built using a previous query?

    The easiest way to avoid duplicates of posts loaded before Ajax Load More is to use the offset parameter or the Preloaded Add-on.

    2. The easiest way to do this is to locate the query or include file used on your blog and then duplicate the code in your Repeater Template.

    Hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Duplicate Posts’ is closed to new replies.