GD>Post Address, Address Template – Details page Address

This topic contains 9 replies, has 5 voices, and was last updated by  Foster 4 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #498766

    Foster
    Full Member
    Post count: 164

    1. I am using a GD>Post Address block on my Archive Item page and every setting seems to work correctly except “Address Template.”

    I would like to display : %%city%%, %%region%%
    Instead it output %%street%% and %%city%%

    2. on the Details Page, the address is followed by a comma “,” that I would like to hide.

    3. I plan to use the following code to hide the street address but it also leaves a comma I would like to hide:

    .gd-listing-cards span[itemprop=”streetAddress”] {display:none}

    
    
    
    ### WordPress Environment ###
    
    Home URL: https://venuemaps.net
    Site URL: https://venuemaps.net
    GD Version: 2.0.0.64
    WP Version: 5.2.2
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.10 (Debian)
    PHP Version: 7.3.6-1+0~20190531112546.39+jessie~1.gbp6131b7
    PHP Post Max Size: 12 MB
    PHP Time Limit: 60
    PHP Max Input Vars: 2500
    cURL Version: 7.38.0
    OpenSSL/1.0.1t
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.44
    Max Upload Size: 12 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    PHP XML: ✔
    
    ### User platform ###
    
    Platform: Macintosh
    Browser name: Chrome
    Browser version: 75.0.3770.142
    User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML
    like Gecko) Chrome/75.0.3770.142 Safari/537.36
    
    ### Settings ###
    
    API Enabled: ✔
    Max upload file size(in mb): 12
    New listing default status: pending
    Google Maps API KEY: ✔
    Set default location: ✔
    
    ### Database ###
    
    GD Database Version: 2.0.0.64
    GD Database Prefix: wpzq_
    Total Database Size: 74.72MB
    Database Data Size: 51.49MB
    Database Index Size: 23.23MB
    wpzq_geodir_api_keys: Data: 0.02MB + Index: 0.03MB
    wpzq_geodir_attachments: Data: 1.15MB + Index: 0.09MB
    wpzq_geodir_business_hours: Data: 0.02MB + Index: 0.00MB
    wpzq_geodir_custom_fields: Data: 0.05MB + Index: 0.00MB
    wpzq_geodir_custom_sort_fields: Data: 0.00MB + Index: 0.00MB
    wpzq_geodir_post_review: Data: 0.00MB + Index: 0.00MB
    wpzq_geodir_gd_place_detail: Data: 2.91MB + Index: 0.22MB
    wpzq_geodir_gd_agency_detail: Data: 0.02MB + Index: 0.05MB
    wpzq_geodir_gd_band_detail: Data: 0.02MB + Index: 0.05MB
    wpzq_countries: Data: 0.08MB + Index: 0.00MB
    wpzq_bp_activity: Data: 0.00MB + Index: 0.01MB
    wpzq_bp_activity_meta: Data: 0.00MB + Index: 0.00MB
    wpzq_bp_friends: Data: 0.00MB + Index: 0.00MB
    wpzq_bp_messages_messages: Data: 0.00MB + Index: 0.00MB
    wpzq_bp_messages_meta: Data: 0.00MB + Index: 0.00MB
    wpzq_bp_messages_notices: Data: 0.00MB + Index: 0.00MB
    wpzq_bp_messages_recipients: Data: 0.00MB + Index: 0.01MB
    wpzq_bp_notifications: Data: 0.00MB + Index: 0.01MB
    wpzq_bp_notifications_meta: Data: 0.00MB + Index: 0.00MB
    wpzq_bp_user_blogs: Data: 0.00MB + Index: 0.00MB
    wpzq_bp_user_blogs_blogmeta: Data: 0.00MB + Index: 0.01MB
    wpzq_bp_xprofile_data: Data: 0.00MB + Index: 0.00MB
    wpzq_bp_xprofile_fields: Data: 0.00MB + Index: 0.01MB
    wpzq_bp_xprofile_groups: Data: 0.00MB + Index: 0.00MB
    wpzq_bp_xprofile_meta: Data: 0.00MB + Index: 0.01MB
    wpzq_commentmeta: Data: 0.00MB + Index: 0.00MB
    wpzq_comments: Data: 0.08MB + Index: 0.04MB
    wpzq_email_log: Data: 0.09MB + Index: 0.00MB
    wpzq_ewwwio_images: Data: 1.52MB + Index: 1.61MB
    wpzq_geodir_claim: Data: 0.02MB + Index: 0.00MB
    wpzq_geodir_comments_reviews: Data: 0.00MB + Index: 0.00MB
    wpzq_geodir_countries: Data: 0.03MB + Index: 0.00MB
    wpzq_geodir_coupons: Data: 0.00MB + Index: 0.00MB
    wpzq_geodir_cp_link_posts: Data: 0.02MB + Index: 0.02MB
    wpzq_geodir_custom_advance_search_fields: Data: 0.00MB + Index: 0.00MB
    wpzq_geodir_event_schedule: Data: 0.00MB + Index: 0.00MB
    wpzq_geodir_gd_booking_detail: Data: 0.00MB + Index: 0.00MB
    wpzq_geodir_gd_diy_detail: Data: 0.02MB + Index: 0.03MB
    wpzq_geodir_gd_event_detail: Data: 0.00MB + Index: 0.00MB
    wpzq_geodir_gd_festival_detail: Data: 0.02MB + Index: 0.03MB
    wpzq_geodir_gd_promoter_detail: Data: 0.02MB + Index: 0.03MB
    wpzq_geodir_gd_venue_detail: Data: 0.00MB + Index: 0.00MB
    wpzq_geodir_invoice: Data: 0.00MB + Index: 0.00MB
    wpzq_geodir_location_seo: Data: 0.01MB + Index: 0.00MB
    wpzq_geodir_post_icon: Data: 1.34MB + Index: 0.08MB
    wpzq_geodir_post_locations: Data: 0.21MB + Index: 0.03MB
    wpzq_geodir_post_neighbourhood: Data: 0.00MB + Index: 0.00MB
    wpzq_geodir_post_packages: Data: 0.05MB + Index: 0.00MB
    wpzq_geodir_price: Data: 0.00MB + Index: 0.00MB
    wpzq_geodir_pricemeta: Data: 0.02MB + Index: 0.03MB
    wpzq_geodir_rating_category: Data: 0.00MB + Index: 0.00MB
    wpzq_geodir_rating_style: Data: 0.00MB + Index: 0.00MB
    wpzq_geodir_tabs_layout: Data: 0.02MB + Index: 0.00MB
    wpzq_geodir_term_meta: Data: 0.71MB + Index: 0.04MB
    wpzq_geodir_unassign_comment_images: Data: 0.00MB + Index: 0.00MB
    wpzq_grp_google_place: Data: 0.02MB + Index: 0.02MB
    wpzq_grp_google_review: Data: 0.02MB + Index: 0.03MB
    wpzq_ip_geo_block_cache: Data: 0.02MB + Index: 0.02MB
    wpzq_ip_geo_block_logs: Data: 0.08MB + Index: 0.03MB
    wpzq_ip_geo_block_stat: Data: 0.02MB + Index: 0.00MB
    wpzq_links: Data: 0.00MB + Index: 0.00MB
    wpzq_ms_snippets: Data: 0.02MB + Index: 0.00MB
    wpzq_nf3_actions: Data: 0.02MB + Index: 0.00MB
    wpzq_nf3_action_meta: Data: 0.13MB + Index: 0.00MB
    wpzq_nf3_chunks: Data: 0.02MB + Index: 0.00MB
    wpzq_nf3_fields: Data: 0.02MB + Index: 0.00MB
    wpzq_nf3_field_meta: Data: 1.52MB + Index: 0.00MB
    wpzq_nf3_forms: Data: 0.02MB + Index: 0.00MB
    wpzq_nf3_form_meta: Data: 0.11MB + Index: 0.00MB
    wpzq_nf3_objects: Data: 0.02MB + Index: 0.00MB
    wpzq_nf3_object_meta: Data: 0.02MB + Index: 0.00MB
    wpzq_nf3_relationships: Data: 0.02MB + Index: 0.00MB
    wpzq_nf3_upgrades: Data: 0.47MB + Index: 0.00MB
    wpzq_options: Data: 12.89MB + Index: 0.12MB
    wpzq_pmpro_membership_levelmeta: Data: 0.02MB + Index: 0.03MB
    wpzq_postmeta: Data: 15.76MB + Index: 2.12MB
    wpzq_posts: Data: 4.52MB + Index: 3.58MB
    wpzq_searchlog: Data: 0.27MB + Index: 0.00MB
    wpzq_signups: Data: 0.00MB + Index: 0.01MB
    wpzq_snippets: Data: 0.02MB + Index: 0.00MB
    wpzq_statistics_exclusions: Data: 0.02MB + Index: 0.03MB
    wpzq_statistics_historical: Data: 0.02MB + Index: 0.05MB
    wpzq_statistics_pages: Data: 0.38MB + Index: 1.25MB
    wpzq_statistics_search: Data: 0.02MB + Index: 0.05MB
    wpzq_statistics_useronline: Data: 0.02MB + Index: 0.00MB
    wpzq_statistics_visit: Data: 0.06MB + Index: 0.02MB
    wpzq_statistics_visitor: Data: 4.52MB + Index: 10.58MB
    wpzq_termmeta: Data: 0.01MB + Index: 0.01MB
    wpzq_terms: Data: 0.02MB + Index: 0.04MB
    wpzq_term_relationships: Data: 0.51MB + Index: 1.08MB
    wpzq_term_taxonomy: Data: 0.02MB + Index: 0.03MB
    wpzq_tm_taskmeta: Data: 0.02MB + Index: 0.03MB
    wpzq_tm_tasks: Data: 0.02MB + Index: 0.02MB
    wpzq_usermeta: Data: 0.41MB + Index: 0.17MB
    wpzq_users: Data: 0.03MB + Index: 0.04MB
    wpzq_uwp_form_extras: Data: 0.02MB + Index: 0.00MB
    wpzq_uwp_form_fields: Data: 0.02MB + Index: 0.00MB
    wpzq_uwp_social_profiles: Data: 0.02MB + Index: 0.03MB
    wpzq_uwp_usermeta: Data: 0.05MB + Index: 0.00MB
    wpzq_wpinv_subscriptions: Data: 0.02MB + Index: 0.06MB
    wpzq_wplc_chat_msgs: Data: 0.02MB + Index: 0.00MB
    wpzq_wplc_chat_ratings: Data: 0.02MB + Index: 0.00MB
    wpzq_wplc_chat_sessions: Data: 0.02MB + Index: 0.00MB
    wpzq_wplc_chat_triggers: Data: 0.02MB + Index: 0.00MB
    wpzq_wplc_custom_fields: Data: 0.02MB + Index: 0.00MB
    wpzq_wplc_departments: Data: 0.02MB + Index: 0.00MB
    wpzq_wplc_offline_messages: Data: 0.02MB + Index: 0.00MB
    wpzq_wplc_roi_conversions: Data: 0.02MB + Index: 0.00MB
    wpzq_wplc_roi_goals: Data: 0.02MB + Index: 0.00MB
    wpzq_wplc_webhooks: Data: 0.02MB + Index: 0.00MB
    wpzq_wplnst_scans: Data: 0.13MB + Index: 0.08MB
    wpzq_wplnst_scans_objects: Data: 0.02MB + Index: 0.05MB
    wpzq_wplnst_urls: Data: 0.08MB + Index: 0.19MB
    wpzq_wplnst_urls_locations: Data: 0.02MB + Index: 0.28MB
    wpzq_wplnst_urls_locations_att: Data: 0.02MB + Index: 0.06MB
    wpzq_wplnst_urls_status: Data: 0.02MB + Index: 0.23MB
    wpzq_wsluserscontacts: Data: 0.00MB + Index: 0.00MB
    wpzq_wslusersprofiles: Data: 0.00MB + Index: 0.00MB
    wpzq_yoast_seo_links: Data: 0.02MB + Index: 0.02MB
    wpzq_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB
    wp_comments: Data: 0.02MB + Index: 0.08MB
    wp_links: Data: 0.02MB + Index: 0.02MB
    wp_options: Data: 0.05MB + Index: 0.02MB
    wp_postmeta: Data: 0.02MB + Index: 0.03MB
    wp_posts: Data: 0.02MB + Index: 0.06MB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB
    wp_terms: Data: 0.02MB + Index: 0.03MB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB
    wp_usermeta: Data: 0.02MB + Index: 0.03MB
    wp_users: Data: 0.02MB + Index: 0.05MB
    
    ### Post Type Counts ###
    
    attachment: 5866
    bp-email: 32
    custom_css: 2
    customize_changeset: 34
    gd_agency: 2
    gd_band: 2
    gd_booking: 1
    gd_festival: 1
    gd_list: 4
    gd_place: 6279
    nav_menu_item: 169
    nf_sub: 21
    oembed_cache: 2
    page: 52
    post: 10
    revision: 3
    wpgform: 1
    wpi_invoice: 137
    wpi_item: 11
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (31) ###
    
    WP Easy Updates: by AyeCode Ltd – 1.1.10
    Adaptive Images for WordPress: by Nevma – 0.6.67
    AddToAny Share Buttons: by AddToAny – 1.7.36
    Breeze: by Cloudways – 1.0.10
    Code Snippets: by Shea Bunge – 2.13.3
    Email Log: by Sudar – 2.3.1
    GeoDirectory Google Analytics: by GeoDirectory – 2.0.0.3
    GeoDirectory Advanced Search Filters: by AyeCode Ltd – 2.0.0.12
    GeoDirectory Ajax Duplicate Alert: by GeoDirectory – 2.0.0.2
    GeoDirectory Claim Listings: by AyeCode Ltd – 2.0.0.8
    GeoDirectory Map Styles: by GeoDirectory – 2.0.0.2
    GeoDirectory Custom Post Types: by AyeCode Ltd – 2.0.0.13
    GeoDirectory Location Manager: by AyeCode Ltd – 2.0.0.19
    GeoDirectory Pricing Manager: by AyeCode Ltd – 2.5.0.11
    GeoDirectory Re-Captcha: by AyeCode Ltd – 2.0.0.2
    GeoDirectory Social Importer: by AyeCode Ltd – 2.0.1.2
    GeoDirectory: by AyeCode Ltd – 2.0.0.64
    Google XML Sitemaps: by Arne Brachhold – 4.1.0
    Anti-Malware Security and Brute-Force Firewall: by Eli Scheetz – 4.18.76
    Invoicing: by AyeCode Ltd – 1.0.10
    IP Geo Block: by tokkonopapa – 3.0.17.4
    Ninja Forms: by The WP Ninjas – 3.4.16
    Really Simple SSL: by Rogier Lankhorst
    Mark Wolters – 3.2.3
    
    ShortPixel Image Optimizer: by ShortPixel – 4.14.2
    SiteOrigin Widgets Bundle: by SiteOrigin – 1.15.7
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.16.15
    
    UsersWP: by AyeCode Ltd – 1.1.3
    UsersWP - ReCaptcha: by AyeCode Ltd – 1.0.5
    Widget Importer & Exporter: by ChurchThemes.com – 1.5.5
    Widget Logic: by WPChef – 5.10.4
    WP Statistics: by VeronaLabs – 12.6.7
    
    ### GD Pages ###
    
    Location page: #984 - /location/
    Add listing page: #978 - /add-listing/
    Search Page: #18543 - /search/
    Terms and Conditions page: #7388 - /terms-of-service/
    Archive page: #18544 - /gd-archive/
    Details Page: #18546 - /gd-details/
    
    ### Theme ###
    
    Name: Listimia
    Version: 1.0.8
    Author URL: https://addictedtoweb.com
    Child Theme: ❌ – If you are modifying GeoDirectory on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    GeoDirectory Support: ❌ Not declared
    
    ### Templates ###
    
    Overrides: listimia/geodirectory/content-archive-listing.php
    listimia/geodirectory/content-widget-listing.php
    listimia/geodirectory/listing-filter-form.php
    listimia/geodirectory/map-popup.php
    listimia/geodirectory/reviews.php
    
    
    #498776

    Guust
    Moderator
    Post count: 29970

    Can you post your URL and WP admin details in a private reply so we can check your code.
    Thanks

    #498973

    Foster
    Full Member
    Post count: 164
    This reply has been marked as private.
    #499020

    Alex Rollin
    Moderator
    Post count: 27815

    I do not see a way to change that on either template.

    Please contact theme support for advice.

    #499084

    Guust
    Moderator
    Post count: 29970

    1. I am using a GD>Post Address block on my Archive Item page and every setting seems to work correctly except “Address Template.”
    I would like to display : %%city%%, %%region%%
    Instead it output %%street%% and %%city%%

    That seems specific to your site, I cannot replicate that on my test site.

    2. on the Details Page, the address is followed by a comma “,” that I would like to hide.

    That can be done with CSS, I’ll get a developer to have a closer look.

    3. I plan to use the following code to hide the street address but it also leaves a comma I would like to hide:
    .gd-listing-cards span[itemprop=”streetAddress”] {display:none}

    That can be done with CSS, I’ll get a developer to have a closer look.

    Thanks

    #499085

    Guust
    Moderator
    Post count: 29970
    This reply has been marked as private.
    #499108

    Kiran
    Moderator
    Post count: 7069

    Hello Foster,

    I checked and found you have done some customization via theme. Please provide FTP credentials to look into more.

    Kiran

    #499121

    Guust
    Moderator
    Post count: 29970

    @brughfoster Can you contact the Listimia developer for this please, we think he may need to make a few changes to his theme.
    Thanks

    #499264

    Rachid
    Expired Member
    Post count: 18

    Hello,
    Actually you can use the “geodir_cf_address_template” filter with any theme.

    To change the layout of addresses add the following code, to functions.php of your child theme, or as a code snippet if you use the Code Snippets plugin.

    If you want to change the address format everywhere on your site:

    function my_custom_address($format){
            $format = "%%city%%, %%region%%";
    return $format;
    }
    add_filter('geodir_cf_address_template','my_custom_address',11,1);

    If you want a specific format for details page use this code:

    function my_custom_address($format){
        if (geodir_is_page('detail')) {  
            $format = "%%city%%, %%region%%";
        } else {
            $format = "%%street%%, %%city%%";
        }
    return $format;
    }
    add_filter('geodir_cf_address_template','my_custom_address',11,1);

    Sincerely,
    Rachid from AddictedToWeb

    #499335

    Foster
    Full Member
    Post count: 164

    I contacted the Listimia developer.
    I had been using a Snippet that wasn’t working anymore and they had me replace it with this one:

    function my_custom_address($format){
            $format = "%%city%%, %%region%%";
    return $format;
    }
    add_filter('geodir_cf_address_template','my_custom_address',11,1);
    
Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket