Support Forums - Classified Ads Script Osclass
Osclass theme support => Veronika Osclass Responsive Theme => Topic started by: terry on April 12, 2017, 10:25:22 AM
-
I've just noticed that when you view a parent category, it only shows 1 listing even though there are more listings in the child categories. Another parent category show none.
Does it have anything to do with cookies and the location I have "okayed" with? Am I missing a setting somewhere.
If so would it be possible to add a div under the categories/subcategories with the current location and category the user is on? Where would I find this code?
Thank you.
-
@terry
You have location in search sidebar that can be accessed from header.
-
Thanks @frosticek - this only shows on the homepage though - would it work if I copy the code for just the location into the header of category pages?
-
I do not think it will work without problems
-
What if I just echo the current category (like the breadcrumbs) and current location (no filter etc, just pure text) into a div under the "Subcategories" button. Would you be able to tell me the code to this or where I can look?
Thanks again
-
@terry
You can user helper functions:
https://doc.osclass.org/HSearch.php
osc_search_region() - Gets current search region
osc_search_city() - Gets current search city
-
@frosticek
Fantastic! This really helps. Thank you