Show label AND URL for [gd_post_meta key="website"]

This topic contains 2 replies, has 2 voices, and was last updated by  Kor 4 years, 4 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #523605

    Suzi Berman
    Expired Member
    Post count: 17

    Hello! I am using this shortcode [gd_post_meta key=”website” new_window=’1′]
    to display listings here:
    https://stridecare.com/clinic/advanced-foot-and-ankle-of-north-texas-carrollton/
    I added this to the shortcode [show=”icon-label-value”] so it will display the word Website, the icon and the URL. In other words we want it to look like this:
    Website: https://www.advancedfootandankledocs.com
    But it doesn’t work. No matter what I do I can’t get it to display the label “Website”.
    The default originally was it just displayed the word “Website” and that linked out. We wanted the URL show so I contacted support and someone helped me to show the URL but not the word Website. I believe code was changed but not sure where to find it. How can it display both URL and Website?

    #523606

    Suzi Berman
    Expired Member
    Post count: 17

    Hello – In looking at past topics, I found that I had installed Code Snippets Plugin and used this code to get it to display the URL instead of the word Website:

    add_filter( ‘geodir_custom_field_website_name’, ‘geodir_change_website_field_display_name’, 10, 3 );
    function geodir_change_website_field_display_name($name,$website,$post_id){
    if($name==’Facebook’ || $name==’Twitter’ || $name==’Instagram’ || $name==’Website’){return $website ; }
    else{return $name;}
    }

    Can you provide updated code to display BOTH the label “Website:” and the URL?

    #523609

    Kor
    Moderator
    Post count: 16516

    Hi suzi,

    Thanks for your post. Kindly insert the custom CSS code below into WP > Appearance > Customize > Additional CSS and see if it’s what you’re looking for.

    .geodir_post_meta.geodir-field-website:before{content:"Website ";}
Viewing 3 posts - 1 through 3 (of 3 total)

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

Open Support Ticket