This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Month Single Event | |
* This file contains one event in the month view | |
* | |
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/month/single-event.php | |
* | |
* @package TribeEventsCalendar | |
* @version 4.6.21 | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: https://theeventscalendar.com/knowledgebase/k/add-category-tags-to-list-view/ | |
// Remove "Event Categories" label from tribe_get_event_categories function | |
function tec_remove_category_label( $html, $post_id, $args, $categories ) { | |
$html = ! empty( $categories ) ? sprintf( | |
'%s%s%s', | |
$args['wrap_before'], | |
$categories, | |
$args['wrap_after'] | |
) : ''; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// That snippet was tested using the following plugin versions: | |
// The Events Calendar v6.2.9 | |
// Rank Math SEO v1.0.210 | |
// Check if Events Calendar and Rank Math plugins are enabled | |
if (class_exists('Tribe__Events__Main') && class_exists('RankMath')) { | |
add_filter( 'rank_math/frontend/robots', function( $robots ) { | |
global $post; | |
if (!is_admin() && is_singular() && @$post->post_type == 'tribe_events') { | |
if (strtotime(tribe_get_end_date($post->ID, true, 'r')) < time()) { |
OlderNewer