Forum Replies Created

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

    (@tedkord)

    Nevermind, figured it out. Thanks for the help gerbilk!

    Thread Starter tedkord

    (@tedkord)

    but, where do I put that in the code? just stick a AND paged=2 in there?

    Here is the entire code for that. Just need to know where to stick paged=2

    <?php $randompost = $wpdb->get_results(“SELECT ID FROM $wpdb->posts WHERE post_status = ‘publish’ AND post_type = ‘post’ ORDER BY RAND() LIMIT 12”);

    foreach ($randompost as $post) {
    $ID = $post->ID;
    $postid = get_post($post->ID);
    $title = $postid->post_title;
    $values = $wpdb->get_var(“SELECT meta_value FROM $wpdb->postmeta WHERE post_id = $ID AND meta_key = ‘Image’ “);
    ?>

Viewing 2 replies - 1 through 2 (of 2 total)