Home › Forums › Calendar Products › Events Calendar PRO › Related events, Duplicate Venues, & Before HTML
- This topic has 6 replies, 3 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
July 3, 2013 at 8:37 am #52933estebanParticipant
I just upgraded to 3.0 and would like to solve the following:
1. How do modify the views to get rid of related events. It shows the same 3 events in all my events.
2. I would like to show the Before HTML only in the event’s list page and not in every single event. But can’t find the code to erase.
3. The button to remove duplicated venues suddenly dissapeared.
July 3, 2013 at 11:00 am #52980JonahParticipantHi esteban,
1. You should be able to use this in your theme’s functions.php file:
/*-----------------------------------------------------------------------------------*/
/* Remove Tribe Related Events
/*-----------------------------------------------------------------------------------*/
remove_action( 'tribe_events_single_event_after_the_meta', 'tribe_single_related_events' );
2. You should be able to do this by making a copy of /wp-content/plugins/the-events-calendar/views/default-template.php and placing in a ‘tribe-events’ folder in your theme and then wrapping the tribe_events_before_html() and tribe_events_after_html() tags in a conditional check for whether or not you are viewing the list like so:
if(tribe_is_upcoming()) { tribe_events_after_html(); }
Does that make sense?3. You can find this in Events > Settings > General down towards the bottom: http://cl.ly/image/402g1N0W0E1A
I hope that all helps but let me know if you have any other questions.
– Jonah
July 3, 2013 at 11:47 am #52997estebanParticipantThe related events is solved. Thanks.-
But lets say I want to use this with one of my themes templates and not the Plugins default template. Is this posible ?
if(tribe_is_upcoming()) { tribe_events_after_html(); }
I saw the duplicate venues button and it suddenly disapeared http://www.proyectomx.com/image.png
July 3, 2013 at 1:09 pm #53023estebanParticipantI solved it with this tribe-templates.class.php
/**
* Loads the contents into the page template
*
* @return string Page content
*/
public static function load_ecp_into_page_template() {
// only run once!!!
remove_filter(‘the_content’, array(__CLASS__, ‘load_ecp_into_page_template’) );self::restoreQuery();
ob_start();
if(tribe_is_upcoming()) { echo tribe_events_before_html(); }
tribe_get_view();
July 3, 2013 at 1:09 pm #53025estebanParticipantI still can’t make the duplicate venues to come back
July 3, 2013 at 1:22 pm #53030JonahParticipantHi Esteban,
Glad you figured it out, but I would suggest not modifying core files like you did with tribe-templates.class.php…
The duplicate venues button will only show until you’ve actually run the merge script or there are actually duplicate venues. Are you still seeing duplicates? Are new duplicate venues being created when you create new events?
– Jonah
July 7, 2015 at 6:27 am #979536Support DroidKeymasterThis 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. -
AuthorPosts
- The topic ‘Related events, Duplicate Venues, & Before HTML’ is closed to new replies.