Get website link URL

Home Forums Calendar Products Events Calendar PRO Get website link URL

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #67367
    madsrh
    Participant

    Hi

    I’ve got this code:

    $billetnet_link = esc_url(tribe_get_event_meta( tribe_get_organizer_id( $postId ), ‘_OrganizerWebsite’, true ));

    which gives me the Organizer Website link, but I need the website link. I’ve been trying _EventURL and tribe_get_event_website_link() but I can’t make it work.

    Can anyone help?

    #67925
    Julie Kuehl
    Participant

    Hi madsrh,

    I apologize for the delay in responding to your issue. We’ve failed to meet our own standard of a 24 hour turnaround.

    That being said, I’m going to pass along your question to one of our more dev-minded team members to help out with. They’ll be able to address it better than I. I’ll ask that they look at it first thing tomorrow.

    Again, apologies. And we’ll do our best to get you sorted.

    — Julie

    #68025
    Barry
    Member

    Hello @madsrh,

    If you need the event website URL, already nicely formed as a valid piece of HTML, you can indeed use tribe_get_event_website_link(). If you want the “raw” URL itself, you can alternatively do something like:

    echo tribe_get_event_meta( get_the_ID(), '_EventURL', true );

    It’s sounding rather like you’ve tried both of these without success, so what we’d need to know is a little more of the context in which you are using them. Can you share your actual code (please don’t post it directly in the forum, though – instead post it to a service like Pastebin or Gist and share the link here) and describe where it lives/at what point in the request it runs, and how/if you are deriving the post ID for the event?

    Thanks!

    #981071
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Get website link URL’ is closed to new replies.