Results 1 to 1 of 1

Thread: Location search

  1. #1
    Thread Starter
    Expired Customer benkovic's Avatar
    Join Date
    Jul 2012
    Location
    Canada
    Posts
    76
    Thanks
    2
    Thanked 4 Times in 4 Posts

    Location search

    Im modding the vantage recent listings widget and currently it brings back the most recent 3 listings, what I wanna do is be able to bring back the listings based on their city. Query looks like this

    $r = new WP_Query( array(
    'post_type' => VA_LISTING_PTYPE,
    'posts_per_page' => $number,
    'no_found_rows' => true,
    'post_status' => 'publish',
    'ignore_sticky_posts' => true,
    'orderby' => 'rand'
    ) );

    is their a specific variable such as "location=> 'city_value'"? Thanks in advance

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Map / location search filter doesn't work - the post search filter works fine
    By tdelude in forum Report JobRoller Bugs
    Replies: 4
    Last Post: May 23rd, 2013, 11:35 AM
  2. Show location of ads on a map, search by location
    By wombat86 in forum ClassiPress General Discussion
    Replies: 2
    Last Post: October 20th, 2012, 04:20 PM
  3. Location Frustration - What do the search boxes actually search?
    By christian_x in forum Help Using Vantage (Legacy)
    Replies: 10
    Last Post: September 21st, 2012, 06:23 PM
  4. Replies: 1
    Last Post: September 16th, 2012, 09:55 AM