Results 1 to 3 of 3

Thread: Post__not_in doesn't work, orderby 'distance'

  1. #1
    Thread Starter
    Expired Customer wypozyczalniamazury's Avatar
    Join Date
    Oct 2017
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post__not_in doesn't work, orderby 'distance'

    Hi, I bought your plugin and I have a question: I would have liked to turn on displaying listings of the same author in function query_near_ads() and in function query_related_ads(), so I delete this line from a code:
    ‘author__not_in’ => array( $post->post_author )

    I still need to turn off displaying the same post in the slider of both widgets. The line:
    ‘post__not_in’ => array( $post->ID )
    is working in function query_related_ads() but not in query_near_ads()
    Do you know how to fix it near_ads widget?

    I also think that orderby ‘distance’ is not working in near_ads widget.

    Thanks in advance,
    Patryk

  2. #2
    Marketplace Seller roidayan's Avatar
    Join Date
    Apr 2014
    Location
    Israel
    Posts
    1,129
    Thanks
    31
    Thanked 149 Times in 136 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Marketplace Seller roidayan's Avatar
    Join Date
    Apr 2014
    Location
    Israel
    Posts
    1,129
    Thanks
    31
    Thanked 149 Times in 136 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] geo distance not work
    By fotodisenyweb in forum Display GEO Distance - ClassiPress
    Replies: 5
    Last Post: February 10th, 2016, 12:15 PM
  2. Geo Distance no work
    By actv6 in forum Display GEO Distance - ClassiPress
    Replies: 10
    Last Post: February 8th, 2016, 04:17 AM
  3. Can you set the default distance slider distance to something smaller than 50km
    By shunarjuna in forum Vantage General Discussion (Legacy)
    Replies: 8
    Last Post: September 11th, 2015, 01:55 PM
  4. Vantage Distance GEO Distance Slow
    By skidaddlers in forum Help Using Vantage (Legacy)
    Replies: 1
    Last Post: March 26th, 2015, 04:32 AM