Get wrong event URL from tribe_get_event_meta or get_permalink

Home Forums Ticket Products Eventbrite Tickets Get wrong event URL from tribe_get_event_meta or get_permalink

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1583581
    beinfinitenow
    Participant

    Hi!

    I needed to style the month page, so I wrote an additional code that displays events page under the calendar. However, when I click the event URL, I get a nonexistent page:

    https://www.beinfinitenow.com/events/

    The URL comes from get_permalink function. I tried using

    tribe_get_event_meta( get_the_ID(), ‘_EventURL’, true )

    but it returns event ID, not event URL, which is what I would expect.

    I also noticed that get_permalink function returns events in this format: https://www.beinfinitenow.com/full-blood-moon-guided-meditation-48348935969/

    and when I list events using Eventbrite events page template on this page: https://www.beinfinitenow.com/classes-and-events/ – when I click on events, they follow this format – https://www.beinfinitenow.com/classes-and-events/full-blood-moon-guided-meditation-48348935969/ The difference is in page name between the site URL and the event.

    And when I edit the same event in WordPress admin panel, its URL is https://www.beinfinitenow.com/event/full-blood-moon-guided-meditation/ – “event” after website URL instead of “classes-and-events”.

    All of the above makes me wonder if I’ve done something wrong in the setup. But the least I need to find out is how to obtain the correct event URL.

    Thank you!

    #1584754
    beinfinitenow
    Participant

    Hi! can anyone answer my question, please?

    #1585727

    Hi Irina,

    Thanks so much for reaching out!

    After reviewing your request this essentially looks like a custom development task and so is outside of our stated scope of support.

    With that being said, we’d love to help point you in the right direction.

    I’d recommend starting off by taking a look at our Themer’s Guide, which can show you which templates can be edited and copied in order to attempt the results that you are looking for.

    If you’d prefer not to tackle this customization on your own, we may be able to assist you further. We do need to prioritize support requests from other customers at this time but I’ll certainly flag this with the team and – although we can’t make any promises – if we have time and space to come back and help, we’ll be happy to do so.  Please let us know if you’d like to go this route so that you can be added to this queue.

    In the meantime, if there is any more information you can share (including mocks) that will help us to better understand what you are seeking please do feel free to add them to this ticket.

    If you urgently need help with this, however, you may instead wish to consider working with a suitably skilled developer or designer who can offer the additional level of support you require.

    Let me know if you have any other questions on this topic!

     

    Thanks,

    Jaime

    #1586123
    beinfinitenow
    Participant

    Really? I asked you why <?php echo tribe_get_event_link(); ?> prints a nonexistent url – and you’re saying it out of the scope?

    I am the developer. I did use the Themer’s Guide, though it does not provide a whole lot of information. I copied the following lines from single-event.php

    ” title=”<?php the_title_attribute() ?>” rel=”bookmark”>
    <?php the_title() ?>

    And I do get an incorrectly formatted URL.

    I wondered if perhaps there was something wrong with event setup – and you’re saying it’s out of scope?

    I’m not asking to develop the theme for me. But the functions you provide should be supported by you. The least you could do is to provide me with the description of those functions – not the general link to the Themer’s Guide where I searched before opening the ticket and waiting for a week for your answer. If it’s there and I missed – just send me the link. If it’s not there – why?

    #1586544

    Hi Irina,

    Here is a list of all of our available functions with descriptions available:

    https://theeventscalendar.com/functions/

    And here is the description for the function that you are using specifically:

    https://theeventscalendar.com/function/tribe_get_event_link/

    Let me know if that helps!

     

    Thanks,

    Jaime

    #1588055
    beinfinitenow
    Participant

    Thank you.

    #1588353

    Glad we could help, you are welcome back in our support forums any time!

    Since you marked this thread as Resolved, I am going to close this thread.

    Have a great week!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Get wrong event URL from tribe_get_event_meta or get_permalink’ is closed to new replies.