Extract the url from website field

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

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

Open Support Ticket

Tagged: , ,

  • Author
    Posts
  • #490155

    Silvia
    Expired Member
    Post count: 18

    Dear Support,

    is there a way to get the url from the shortcode instead of the label (website)?

    $website = do_shortcode( '[gd_post_meta key="website" condition="is_not_empty" show="value"]' );

    Is there another paramater for value or something else that outputs the url?

    I read the documentation and search the forum, without luck.

    kind regards
    silvia

    #490165

    Kor
    Moderator
    Post count: 16516

    Hi Silvia,

    Thanks for your reply. You can insert the shortcode below into GD Archive Item or the Details Template to display the Website custom field URL

    [gd_post_meta key=”website” show=”value”]

    #490168

    Silvia
    Expired Member
    Post count: 18

    Hi Kor,
    thank you for your reply but thats the same output, i want to show the url not the linked label.
    For example: your hint show “website” but i want to show the url that the user inputs.

    Any ideas?

    kind regards
    silvia

    #490170

    Silvia
    Expired Member
    Post count: 18

    i found it out, without shortcode…it was so simple..

    $gd_post->website

    thank you for your help
    and kind regards

    #490171

    Kor
    Moderator
    Post count: 16516

    Hi Silvia,

    Thanks for your reply. Well, I tested it and the attached screenshot is what I get. But I’m glad that you sorted it out yourself. Have a nice day!

Viewing 5 posts - 1 through 5 (of 5 total)

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

Open Support Ticket