Get Venue URL without HTML

Home Forums Calendar Products Events Calendar PRO Get Venue URL without HTML

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #459374
    thejoshevans
    Participant

    Hi,
    On my single event pages, I’m trying to change the Venue URL to display ‘Visit Link’ instead of displaying the website link as I’ve moved the info to a sidebar and longer links are wrapping which doesn’t look very good.

    Is there a way to get just the venue URL without it being preformatted?

    I’ve tried this code which I found in another thread but it doesn’t seem to return anything:

    $url = tribe_get_event_meta( $venue_id, ‘_VenueURL’, true );

    Any help you can give would be great!

    Cheers

    Josh

    #473456
    Casey D
    Member

    Hello thejoshevans,

    Thanks for contacting us! Venues are just another Custom Post Type so I think what you want is get_permalink().

    A line like this should be what you are looking for.

    http://pastie.org/9410349

    Does this make sense? Let me know if this doesn’t work for you.

    Cheers!

    – Casey Driscoll

    #473573
    thejoshevans
    Participant

    Awesome, that works perfectly!

    Thanks!

    #488794
    Casey D
    Member

    Hello thejoshevans,

    Happy it worked out!

    We’d love it if you would leave us a review and let people know how much you like the plugin! http://m.tri.be/jt

    I’ll go ahead and close this thread. Let us know if we can help with anything else.

    – Casey Driscoll

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