Events Calendar Multisite 404 for events
Events Calendar Multisite 404 for events
Events Calendar Multisite 404 for events
<?php $id = get_the_ID(); if (has_post_thumbnail( $id ) ): $thumb = get_the_post_thumbnail_url($id, ‘full’); elseif (tribe_event_featured_image( $id)): $thumb = tribe_event_featured_image( $event_id, ‘large’, false, false ); else: $thumb = get_template_directory_uri().’/images/background.jpg’; endif;?> <body <?php body_class(); ?> style=”background-image: url(‘<?php echo $thumb;?>’); background-size: cover;”> ?> Also you don’t actually need the elseif statement, tribe_event_featured_image is a wrapper for the post … Read more
Custom Permalink Structure for The Events Calendar
How to Create Events Calendar
It appears that The Events Calendar has changed “Now Onwards” to “Upcoming” on their own. This problem is now irrelevant.
Support answered and said they didn’t know how to get the published date, but they would ask their team. For anyone else looking for this answer, I finally found that I can use this to get this published date: $date = mysql2date(‘F d, Y’, get_post_time(‘Y-m-d H:i:s’, true), false);
Check the plugin settings and make sure ‘Use Pretty URLs’ is set to on. This fixed the issue for me.
Set the offset manually. $offset = ( get_query_var( ‘page’ ) ) ? get_query_var( ‘page’ ) : my_parse_url_for_offset(); function my_parse_url_for_offset() { if( strpos( $_SERVER[‘REQUEST_URI’], ‘/page/’ ) !== false ) { $url = explode( “https://wordpress.stackexchange.com/”, $_SERVER[‘REQUEST_URI’] ); $url_c = count( $url ); for( $i = 0; $i < $url_c; $i++ ) { if( $url[$i] == ‘page’ ) … Read more
Maybe try something along the lines of using pre_get_posts to edit the ordering. function reverse_order_homepage($query){ if($query->is_home()){ $query->set(‘order’, ‘DESC’); } return $query; } add_action(‘pre_get_posts’, ‘reverse_order_homepage’);
You should be able to use the code from this answer: https://wordpress.stackexchange.com/a/96068/10 $homepage = get_page_by_title( ‘Events’ ); if ( $homepage ) { update_option( ‘page_on_front’, $homepage->ID ); update_option( ‘show_on_front’, ‘page’ ); } Haven’t tested it with multisite, but my guess is that it should work as advertised.