Forum Replies Created

Viewing 1 replies (of 1 total)
  • Forum: Plugins
    In reply to: Help with using NOW()
    Thread Starter bboldb

    (@bboldb)

    Okay, I think I figured it out.

    I adapted this code presented here straight from https://codex.www.ads-software.com/The_Loop

    Step 2. The second loop, get the X latest posts (except one).

    The following code gets X recent posts (as defined in WordPress preferences) save the one already displayed from the first loop and displays them according to Do stuff.

    <?php if (have_posts()) : while (have_posts()) : the_post();
    if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
    <!– Do stuff… –>
    <?php endwhile; endif; ?>
    ——————————————–

    This will keep the random post from being the same as at least one other from the loop. *I think*

    I wonder why no one wants to help me?

    Maybe this will help someone else….

Viewing 1 replies (of 1 total)