Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,
    I have exact same issue of 0 pages getting cached and POST request bypass.
    Using vbulletin bridge.
    nasium did you find out the solution for the [ajax= => 0 vbulletin adds?

    Thread Starter safin

    (@safin)

    Thanks, that did it.

    For future, any particular reason why the first method was not working? And this works.

    Thread Starter safin

    (@safin)

    Hi,
    That didn’t work. Adding an array() makes it multi dimensional and although the error message is not shown, it basically does nothing also.
    See the query that executes.

    Time: 0.000117063522339
    Query: SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) INNER JOIN wp_term_taxonomy ON (wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id) WHERE 1=1 AND wp_posts.ID NOT IN (1) AND wp_term_taxonomy.taxonomy = 'category' AND wp_term_taxonomy.term_id IN ('56', '92', '93') AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 3
    Call from: require, require_once, include, WP_Query->query, WP_Query->get_posts

    Notice the wp_posts.ID NOT IN (1) part.

    I did a print_r immediately after the args

    $args = array(
        'showposts' => $options['rightpostnum'],
        'cat' => $section,
        'post__not_in' => array($do_not_duplicate)
    	 );
    	 print_r(array($do_not_duplicate));

    And i get this
    Array ( [0] => Array ( [0] => 335 [1] => 295 [2] => 285 [3] => 275 [4] => 241 [5] => 231 [6] => 305 [7] => 147 [8] => 140 [9] => 125 [10] => 122 [11] => 111 [12] => 106 [13] => 96 [14] => 80 ) )
    Notice the double array

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