Results 1 to 5 of 5
Like Tree2Likes
  • 1 Post By dimitris
  • 1 Post By dom

Thread: Cities or States with spaces not showing in meta_compare

  1. #1
    Thread Starter
    bluehavoc's Avatar
    Join Date
    Aug 2014
    Location
    United States
    Posts
    29
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Cities or States with spaces not showing in meta_compare

    Hi. I use the following short code to display ads from two different cities on a custom page. [cp_shc meta_key="cp_city" meta_value="oakland, houston" meta_compare="IN"]

    It works fine until i insert a city or cities with a space between the names example; [cp_shc meta_key="cp_city" meta_value="oakland, san francisco" meta_compare="IN"]

    In this case only the posts from Oakland show up. If I do two cities like San Jose and San Francisco, ad from neither of them show up.

    When i used the following code for my San Francisco only page it works fine... [cp_shc meta_key="cp_city" meta_value="san francisco"]

    Is there someway I'm suppose to be entering cities comprised on two words when using meta_compare ?

    Thank you!

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,867 Times in 1,767 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    bluehavoc likes this.

  3. The Following User Says Thank You to dimitris For This Useful Post:

    bluehavoc (September 6th, 2017)

  4. #3
    dom
    dom is offline
    Newbie dom's Avatar
    Join Date
    May 2013
    Location
    Greece
    Posts
    2
    Thanks
    0
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!
    bluehavoc likes this.

  5. The Following User Says Thank You to dom For This Useful Post:

    bluehavoc (September 6th, 2017)

  6. #4
    Thread Starter
    bluehavoc's Avatar
    Join Date
    Aug 2014
    Location
    United States
    Posts
    29
    Thanks
    5
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #5
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,867 Times in 1,767 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. country /states/cities
    By dwayne1109 in forum Simplux
    Replies: 1
    Last Post: April 3rd, 2013, 06:19 PM
  2. States and cities in Classpress
    By octavio704 in forum ClassiPress General Discussion
    Replies: 3
    Last Post: September 26th, 2012, 12:04 AM
  3. States and cities in Classpress
    By octavio704 in forum WordPress General Discussion
    Replies: 1
    Last Post: September 20th, 2012, 10:56 PM