Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8692301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:17:22+00:00 2026-06-13T00:17:22+00:00

im using wp_query to query posts from a certain taxonomy as followed : $location=urldecode($_GET[‘location’]);

  • 0

im using wp_query to query posts from a certain taxonomy as followed :

        $location=urldecode($_GET['location']);
        $property_type=urldecode($_GET['propertyType']);

        query_posts(array(
                    'numberposts'=>-1,
                    'post_type'=>'property',
                    'property-type'=>$property_type,
                    'location'=>$location,
                    'meta_query'=>array(
                        array('key'=>'wpcf-price','value'=>$amount[0],'compare'=>'>=','type' => 'numeric'),
                        array('key'=>'wpcf-price','value'=>$amount[1],'compare'=>'<=','type' => 'numeric')
                    ),
                    'suppress_filters'=>false
        ));

it is working as expected most of the time except for this string (which is

תל – אביב יפו

it seems that the minus sign somehow messes up the search,
how can i solve this ?

is there a way to use a “LIKE” statement here ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:17:23+00:00Added an answer on June 13, 2026 at 12:17 am

    Found the problem,

    I queried the location meta using the $term->name instead of $teadm->slug which solved the issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using WP_Query to pull out some custom posts like this: $params = array(
I have this query: <?php $query= SELECT wposts.* FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta WHERE
i'm using WP_QUERY to get posts. the problem is that i want to sort
I am using WP_Query to loop through a custom post type in wordpress. My
Using a CSS image sprite, I'm creating an 'interactive' image where hovering over certain
I have a page that features certain image thumbs from a custom field. What
I've decided to start using wp_query instead of query_posts , on my home page
Im trying to get a list of posts from WordPress for the last 7,30
I'm new to MySQL and I'm having problem with a query using PHP. See
OK here goes, I'm using jQuery ajax to load post from inside a slider.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.