Rupert

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Related Events showing the wrong date CONT. #1248995
    Rupert
    Participant

    This reply is private.

    in reply to: Layout issue – content overlapping #1228761
    Rupert
    Participant

    You’re absolutely right, many thanks for your help.

    in reply to: Layout issue – content overlapping #1228295
    Rupert
    Participant

    Thanks Geoff, I’ve added the code but it doesn’t seem to have made any difference.

    in reply to: Google Maps API warning: NoApiKeys #1171745
    Rupert
    Participant

    This reply is private.

    Rupert
    Participant

    Hi Hunter,

    Thanks very much for your suggestion which has fixed the issue.

    Changing the priority setting on the add_filter() function to a much lower priority (eg 999 as in your suggestion) did the trick. I’m not exactly sure why, perhaps the theme or another plugin is also trying to manipulate the excerpt and giving the custom function a lower priority means it’s not affected by whatever anything else is trying to do with it.

    Interestingly, the filter has no effect if the event post has an actual excerpt, ie text in the Excerpt field in the post editor. The filter only works if the template is creating the excerpt from the post content.

    Thanks very much for your help with this,
    Shaun

    in reply to: Eventbrite URL from event ID #1170924
    Rupert
    Participant

    Hi Cliff,

    Thanks very much for the suggestion, but that would be the URL to edit the event info on Eventbrite rather than for the booking page.

    The Eventbrite event booking page URL for one of our events is:
    https://www.eventbrite.com/e/cpd-conference-2017-tickets-27027670490

    I need a way to get this programmatically. From the code you posted I can now get the Eventbrite event ID which is great. I just need a similar method or some other way to get the Eventbrite event URL.

    I thought there might be something like the following, but there doesn’t seem to be:

    $eventbrite_url = get_post_meta( $event_id, ‘_EventBriteURL’, true );

    By the way, we have on our site the plugins ‘The Events Calendar PRO’ and ‘The Events Calendar: Eventbrite Tickets’.

    Thanks again for your help so far,
    Shaun

    Rupert
    Participant

    Hi Hunter,

    Thanks very much for the suggestion, but unfortunately that method isn’t having any effect.

    The template displaying the excerpts in lists of events is list/single-event.php which I have duplicated into my child theme from the plugin directory. The line showing the excerpt is:

    <?php echo tribe_events_get_the_excerpt( null, wp_kses_allowed_html( ‘post’ ) ); ?>

    This pulls content from the post’s excerpt field if there is anything in that field, otherwise it looks at the post’s main content. Either way, the length of the text displayed is not being affected by the filter function which I have added exactly as from your message into my child theme’s functions.php.

    I hope this helps to clarify what I need to do – is there anything else which I can try?

    Many thanks,
    Shaun (on behalf of my client Rupert)

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