Forum Replies Created
-
AuthorPosts
-
Rupert
ParticipantThis reply is private.
Rupert
ParticipantYou’re absolutely right, many thanks for your help.
Rupert
ParticipantThanks Geoff, I’ve added the code but it doesn’t seem to have made any difference.
Rupert
ParticipantThis reply is private.
October 3, 2016 at 4:09 am in reply to: Reduce the length of event excerpt text shown in event listing templates #1171742Rupert
ParticipantHi 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,
ShaunRupert
ParticipantHi 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-27027670490I 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,
ShaunSeptember 30, 2016 at 2:49 am in reply to: Reduce the length of event excerpt text shown in event listing templates #1170916Rupert
ParticipantHi 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) -
AuthorPosts
