*

rooman

  • ****
  • 231 posts
Fetch specific ads by category and specific city
« on: January 02, 2023, 09:02:59 AM »
Hello
I have this code in a custom page
It fetches specific ads according to a specific category and city
Now I'm on the Madrid city page
I want when clicking on another category, ads for this category are brought from the same city of Madrid
Code: [Select]
<?php osc_query_item(array(
     
"category_name" => "cars, houses",
     
"city_name" => "Madrid"
));
if(
osc_count_custom_items() == 0) { ?>

     <p class="empty"><?php _e('No Listings''modern') ; ?></p>
<?php } else { ?>
     <table border="0" cellspacing="0">

*

MB Themes

Re: Fetch specific ads by category and specific city
« Reply #1 on: January 02, 2023, 01:23:27 PM »
@rooman
Update osc_search_url function and add sCity as parameter
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots