mflawith
Forum Replies Created
Viewing 7 posts - 16 through 22 (of 22 total)
Viewing 7 posts - 16 through 22 (of 22 total)
Paolo
I have installed wp debug and on the below is the WP_Query for a working listing and 404 listing:
Working:
[query] => Array (
[post_type] => gd_restaurants
[gd_restaurantscategory] => cape-town-1/the-pot-luck-club
[gd_restaurants] => the-pot-luck-club
[name] => the-pot-luck-club [
gd_country] =>
[gd_region] =>
[gd_city] => cape-town-1
[gd_is_geodir_page] => 1
404ing:
[query] => Array (
[gd_restaurantscategory] => cape-town-1/bombay-brasserie
[gd_restaurants] => bombay-brasserie
[post_type] => gd_restaurants
[name] => bombay-brasserie
[gd_country] =>
[gd_region] =>
[gd_city] => cape-town-1
[gd_is_geodir_page] => 1
As you can see the working listing the Array has [post_type] at top. Is this anything to do with why the new listings are 404ing?
Cheers
Paolo
Managed to put a if statement in the listing-viewlisting.php page which has given me what I want.
Only issue now every time we add a new listing the profile page will 404 and also not show up in the listings.
Our permalinks are set to :
Postname: /sample-post/
Custom structure: /%postname%/
We added the City to the URL’s and all older listings work but when we add new ones it doesnt. Please help us?
M
Hi Guys,
I am trying to split the search results up into by Package_id. We have:
1) Basic
2) Premium
3) Standard
I can extract the $post->package_id from the listing-listview.php file but need to place them in order on the screen from Premium/Standard/Basic. Is there a way I can do this using the listing-listview.php template?
Cheers
M
Hi Paolo
Thanks for your help. We have decided to use our own code with our themes functions to pull Places out of the database. My final question is we are calling Places out using SQL in our results template page and need to access some GEO functions such as:
geodir_set_wp_featured_image()
How do we do this within our theme? Do we have to load GEO into our theme functions file?
Thanks
Get the latest news, tips, and exclusive content directly in your inbox.
Confirm your email address, and instantly receive the discount code :)