Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Forum: Hacks
    In reply to: WP_Query and post__in
    Thread Starter caddoo

    (@caddoo)

    Looking into query.php

    I can see wordpress uses the MySQL syntax ‘IN’ and MySQL will never return the same row twice.

    } elseif ( $q['post__in'] ) {
    			$post__in = implode(',', array_map( 'absint', $q['post__in'] ));
    			$where .= " AND {$wpdb->posts}.ID IN ($post__in)";

    Ill have to write my own option i think and hook it into WP_Query

    Forum: Hacks
    In reply to: WP_Query and post__in
    Thread Starter caddoo

    (@caddoo)

    The reason i’m using WP_Query is so i can use the inbuilt pagination.

    Doing it without the WP loop will prevent this if im right?

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