This file contains 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
### Begin System Info ### | |
** WORDPRESS DATA ** | |
Multisite: No | |
SITE_URL: https://rishelsolutions.com/dev | |
HOME_URL: https://rishelsolutions.com/dev | |
WP Version: 4.9.5 | |
Permalink: /%year%/%monthnum%/%day%/%postname%/ | |
Cur Theme: Twenty Seventeen 1.4 | |
Post Types: post, page, attachment, revision, nav_menu_item, custom_css, customize_changeset, oembed_cache, wp_block, tribe_venue, tribe_organizer, tribe_events, tribe-ea-record, deleted_event |
This file contains 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
add_filter('tribe_events_pre_get_posts', 'filter_tribe_all_occurences', 100); | |
function filter_tribe_all_occurences ($wp_query) { | |
if ( !is_admin() ) { | |
$new_meta = array(); | |
$today = new DateTime(); | |
// Join with existing meta_query |
This file contains 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
//Add to functions.php | |
add_filter( 'tribe_get_events_title', 'change_month_title_wording' ); | |
function change_month_title_wording( $title ) { | |
return str_replace( 'Events for', '', $title ); | |
} |
This file contains 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 | |
/** | |
* If a search is conducted in month view but the relevant events | |
* are in a different month, switch to that month. | |
* | |
* Experimental! Especially during live ajax navigation, there are | |
* parts of this that don't work cleanly (pushstate/URL changes). | |
* Unsupported, use at own risk. | |
*/ | |
class Transmogrified_Month_View_Search { |
This file contains 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 | |
/* | |
* Alters event's archive titles | |
*/ | |
function tribe_alter_event_archive_titles ( $original_recipe_title, $depth ) { | |
// Modify the titles here | |
// Some of these include %1$s and %2$s, these will be replaced with relevant dates | |
$title_upcoming = 'Upcoming Events'; // List View: Upcoming events |
This file contains 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
/*-----------------------------------------------------------------------------------*/ | |
/* The Events Calendar - Conditional Logic to Detect Various Event Related Views/Pages | |
/*-----------------------------------------------------------------------------------*/ | |
if ( tribe_is_month() && ! is_tax() ) { // Month View Page | |
echo 'were on the month view page'; | |
} elseif ( tribe_is_month() && is_tax() ) { // Month View Category Page |
This file contains 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 | |
/* | |
* EXAMPLE OF CHANGING ANY TEXT (STRING) IN THE EVENTS CALENDAR | |
* See the codex to learn more about WP text domains: | |
* http://codex.wordpress.org/Translating_WordPress#Localization_Technology | |
* Example Tribe domains: 'tribe-events-calendar', 'tribe-events-calendar-pro'... | |
*/ | |
function tribe_custom_theme_text ( $translation, $text, $domain ) { | |
This file contains 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
function vehicle_details() { | |
// Add new "Vehicle Details" taxonomy | |
register_taxonomy('vehicle_details', 'vehicle', array( | |
// Hierarchical taxonomy (like categories) | |
'hierarchical' => true, | |
'public' => true, |
This file contains 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 | |
/** | |
* Adds permalink to bottom of tooltip | |
* | |
* Add this template on: | |
* | |
* [your-theme]/tribe-events/month/tooltip.php | |
*/ | |
?> |
This file contains 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 | |
/* | |
* Prevents Next/Prev pages from being loaded via Ajax in List and Month views | |
*/ | |
function tribe_prevent_ajax_paging() { | |
echo " | |
<script> | |
jQuery(document).ready(function(){ |
OlderNewer