WordPress.org

Ready to get started?Download WordPress

Forums

Custom WP_query in RC4 add ID of page set as frontpage to query (4 posts)

  1. thomasvonhassel
    Member
    Posted 3 years ago #

    When running certain custom WP_Query's like

    new WP_Query(array(
    			'meta_query' => array(
    			array(
    			'key' => 'somekey',
    			'value' => 'somevalue',
    			'type' => 'NUMERIC',
    			'compare' => 'LIKE'
    			)
    			)));

    The resulting query object adds the ID of the page set as frontpage to the query and fails to retrieve any posts.

    Any ideas ?

  2. jdantzer
    Member
    Posted 3 years ago #

    I'm not sure if this is related, but after updating to the nightly last night, i think 3.1-RC4-17453, a lot of my custom queries as well as my 'wp_nav_menu' calls are all returning empty arrays.

  3. thomasvonhassel
    Member
    Posted 3 years ago #

  4. Andrew Nacin
    Lead Developer
    Posted 3 years ago #

    Update to the latest nightly, labeled RC5 -- should be good.

Topic Closed

This topic has been closed to new replies.

About this Topic