mflawith

Forum Replies Created

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • in reply to: Subscription #12904

    mflawith
    Expired Member
    Post count: 22

    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

    in reply to: Subscription #12903

    mflawith
    Expired Member
    Post count: 22

    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

    in reply to: Subscription #12740

    mflawith
    Expired Member
    Post count: 22

    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

    in reply to: Subscription #12415

    mflawith
    Expired Member
    Post count: 22
    This reply has been marked as private.
    in reply to: Subscription #12140

    mflawith
    Expired Member
    Post count: 22

    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

    in reply to: Subscription #12075

    mflawith
    Expired Member
    Post count: 22
    This reply has been marked as private.
    in reply to: Migrated new user subscriptions #12070

    mflawith
    Expired Member
    Post count: 22
    This reply has been marked as private.
Viewing 7 posts - 16 through 22 (of 22 total)