Nick Hottinga

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • in reply to: Show address #385902

    Nick Hottinga
    Free User
    Post count: 27

    Thanks for your help!

    I read another topic on this forum where I can change the address and added that snippet into my WP account.

    function gd_custom_sd_details_output_address( $address = ” ) {
    global $post;

    $sd_address = ‘<div class=”sd-address”>’;
    if (isset($post->post_address) && $post->post_address) {
    $sd_address .= apply_filters(‘sd_detail_post_add’, $post->post_address, $post);
    }
    $sd_address .= ‘</div>’;
    $sd_address .= ‘<div class=”sd-address”>’;
    if ( geodir_is_page( ‘detail’ ) && !empty( $post ) && !empty( $post->post_neighbourhood ) && !empty( $post->country_slug ) && defined( ‘GEODIRLOCATION_VERSION’ ) ) {
    if ( get_option( ‘location_neighbourhoods’ ) && $neighbourhood_info = geodir_location_get_neighbourhood_by_id( $post->post_neighbourhood, true, $post->post_location_id ) ) {
    $sd_address .= ‘<div class=”sd-neighbourhood” style=”clear:both;”><span class=”geodir-i-neighbourhood” style=””><i class=”fa fa-location-arrow”></i> ‘ . __( ‘Neighbourhood:’, ‘geodirectory’ ) . ‘ </span> ‘ . $neighbourhood_info->hood_name . ‘</div>’ . $social;
    }
    }
    $sd_address .= ‘</div>’;
    $sd_address .= ‘<div class=”sd-address”>’;
    if (isset($post->post_city) && $post->post_city) {
    $sd_address .= apply_filters(‘sd_detail_city_name’, $post->post_city, $post);
    }
    if (isset($post->post_region) && $post->post_region) {
    $sd_address .= ‘, ‘ . apply_filters(‘sd_detail_region_name’, $post->post_region, $post);
    }
    if (isset($post->post_country) && $post->post_country) {
    $sd_address .= ‘, ‘ . apply_filters(‘sd_detail_country_name’, __($post->post_country, ‘geodirectory’), $post);
    }
    $sd_address .= ‘</div>’;

    return $sd_address;
    }
    add_filter( ‘sd_details_output_address’, ‘gd_custom_sd_details_output_address’, 10, 2 );

    Without this snippet there was only a city name and now people can see directly where it is located.
    I also want to add the city name in the sidebar because there was just a ZIP code and no city name.

    Do I need to add another code for that?

    /edit:

    How can I translate/edit the “Write a review” button into my native language?

    in reply to: Search bar is twice #385349

    Nick Hottinga
    Free User
    Post count: 27

    Thanks I will try that!

    in reply to: Show address #385348

    Nick Hottinga
    Free User
    Post count: 27

    Any other thoughts?

    in reply to: Show address #384539

    Nick Hottinga
    Free User
    Post count: 27

    Thanks for looking into it Guust. I will update the themes and the GD plugin.

    Edit: After the updates I don’t see any changes unfortunatly.

    in reply to: Show complete address #384400

    Nick Hottinga
    Free User
    Post count: 27

    Oké got it! New thread is opened

    in reply to: Show address #384399

    Nick Hottinga
    Free User
    Post count: 27
    This reply has been marked as private.
    in reply to: Show complete address #384332

    Nick Hottinga
    Free User
    Post count: 27

    Hm I don’t get the right adress on my website I guess.

    It’s still not showing the City in sidebar and adress under title 🙁
    Am I doing something wrong?

    in reply to: Show complete address #384266

    Nick Hottinga
    Free User
    Post count: 27

    That code works on every website?

    Right now it shows (sidebar)
    street, zip code but I also want city under the title/sidebar. Is that possible with that code?

    in reply to: Supreme theme setup #383471

    Nick Hottinga
    Free User
    Post count: 27

    Got it! Now my blog looks good.

    in reply to: Supreme theme setup #383090

    Nick Hottinga
    Free User
    Post count: 27

    Is there a way to show an excerpt like the blog on the website of geodirectory itself?

    in reply to: Search options and GD location problems #382920

    Nick Hottinga
    Free User
    Post count: 27

    Thanks, I’ll keep that in mind!

    in reply to: Supreme theme setup #382919

    Nick Hottinga
    Free User
    Post count: 27

    Thanks! I won’t use it because I find it a bit ugly, sorry. The page won’t show the articles excerpt and a very very large picture haha.

    in reply to: Search options and GD location problems #382762

    Nick Hottinga
    Free User
    Post count: 27

    Thanks, it’s a lot clearer now!

    About the location manager, I was hoping not too use it the first time because of the costs. No offense to you guys, I love gd.
    But when there is no other option to add the location when it’s “another city” then I need to wait. Thanks!

    in reply to: Supreme theme setup #382685

    Nick Hottinga
    Free User
    Post count: 27

    Thanks Guust!

    Still can’t find the subtitle/custom fields
    Read again what Paolo wrote and have a look at the images below.

    Got it! I was looking at the wrong page.

    * Is it possible to have an slider that displays the reviews that are made? Right now they are listed beneath eachother but is a slider possible?
    No, there is no slider like that, you can use the GD Slider widget to display listings but not reviews.
    https://wpgeodirectory.com/docs/widgets/#slider

    I’ll look in to the documentation. I will let the reviews be as it is right now.

    * Is there a way to display recent listings or popular places with the free GeoDirectory plugin without any other plugins?
    Popular Post Widget: https://wpgeodirectory.com/docs/widgets/#popular-post

    I’ll look into it!

    * Is is possible that the recent posts are listed with an image or in another way?
    Yes, if you add a featured image to the posts.

    Hm then I need to find a beautiful image.

    * Can I add a blog section on the website with the articles?
    Yes, that is standard WP.
    https://codex.wordpress.org/Writing_Posts

    Do I need to assign a blog page on my website? Because what I want is to have a page where the articles are listed and right now I can’t?

    * I have activated the plugin “Comments ratings” and now I’ve got multiple star ratings. Is this a bug in the plugin or with GD?
    That is not a GD plugin, and is not needed. GD comes with built-in rating system.

    I deleted the plugin and now it’s all good!

    in reply to: Supreme theme setup #382392

    Nick Hottinga
    Free User
    Post count: 27

    Still can’t find the subtitle/custom fields but it’s no big deal. Maybe I’ll find it later.

    Translation; Check! I’ll search the core files and change the words that are a bit weird haha.

    Right now my site looks like this.

    * Is it possible to have an slider that displays the reviews that are made? Right now they are listed beneath eachother but is a slider possible?

    * Is there a way to display recent listings or popular places with the free GeoDirectory plugin without any other plugins?

    * Is is possible that the recent posts are listed with an image or in another way?

    * Can I add a blog section on the website with the articles?

    * I have activated the plugin “Comments ratings” and now I’ve got multiple star ratings. Is this a bug in the plugin or with GD? Example listing

    Sorry for the many questions.. First time builder with GD.

Viewing 15 posts - 1 through 15 (of 21 total)