Cynthia Lockley

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 167 total)
  • Author
    Posts
  • in reply to: Calendar will not advance past December 2016 #1178664
    Cynthia Lockley
    Participant

    Hi Hunter,

    I set up a testing website that duplicates my production site’s design, themes, and plugins. I shut off all the plugins except for the ones for the Events Calendar as I had done before and got the same results as before. Then I switched the theme from Aaron to Twentysixteen. Everything worked as it is supposed to–no problems. I turned all the plugins back on and everything still worked–there is no conflict with a plugin.

    It seems to be a conflict with the theme–but where? I am using a child theme, so I reset the theme to just the original unaltered theme with all the plugins on and everything worked as it is supposed to. There is no conflict with the Aaron theme itself. Then I activated my child theme and the problem is back.

    My child theme includes tailoring for the events calendar so there are several places the problem could be coming from: the child theme’s functions.php, header.php, or anything in the child-theme’s tribe-events folder. In there, I have alterations for the following files.

    day.php
    list.php

    month folder
    content.php
    loop-grid.php
    single-day.php
    single-event.php

    month.php

    pro folder
    map.php
    photo.php
    related-events.php
    single-organizer.php
    single-venue.php
    week.php

    single-event.php
    tribe-events.css

    Where do I start trying to track down the conflict?

    Thanks.

    Cynthia

    Cynthia Lockley
    Participant

    Geoff,

    I contacted the WP Tweets PRO & WP to Twitter developer (Joe Dolson [email protected]). He says that they hook into the publishing of new posts. He asked if you’ve made any changes that would be spawning a re-save of data in Events Calendar Pro events–that might execute the save_post action in a situation other than publishing or editing a post?

    Cynthia Lockley
    Participant

    Hi Geoff,
    I didn’t think it would have an impact either but perhaps there is a conflict. The only tweets being tweeted again are our old event tweets, which is why I thought it might be related to the calendar update.

    To push tweets from our website, I am using WP Tweets Pro, Version 1.9.6 | By Joseph Dolson. This is a combination of the free basic WP to Twitter, Version 3.2.13 | By Joseph Dolson and the Pro version–same as the Events Calendar Pro setup.

    Thanks for looking into it.
    Cynthia

    in reply to: http or https ? #1110131
    Cynthia Lockley
    Participant

    Great. Thanks.

    Cynthia Lockley
    Participant

    Yes. That worked. Thank you!

    in reply to: Not understanding how to embed the calendar into a page #1050228
    Cynthia Lockley
    Participant

    @clarity If you are asking how to embed the month view calendar into your home page like it is on http://events.stcwdc.org/ Do the following.
    1. I am assuming you have created a child theme for your theme. In the functions.php in your child theme, add the following function:

    
    <?php
    //
    // *************************************
    // Events Calendar fix
    // Ensures proper css and javascript have been enqueued in the theme header
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //
    add_action('wp_enqueue_scripts', 'enqueue_month_view_scripts');
    function enqueue_month_view_scripts() {
    if ( is_front_page() ) {
    Tribe__Events__Template_Factory::asset_package('ajax-calendar');
    Tribe__Events__Template_Factory::asset_package('events-css');
    }
    }
    ?>
    

    2. Add the following line to your copy of index.php in your child theme right below

    	<div id="primary" class="content-area">
    		<main id="main" class="site-main" role="main">
    
    
    <?php
    //-------------------------------------------
    // Put Events Calendar on home page
    //-------------------------------------------
    tribe_show_month();
    ?>
    

    The main calendar is always in the /events page on your site with a navigation bar and the ability to see other views. The above will let you show it on your home page but without the nav bar and other views selection.

    I hope this helps.

    in reply to: How do I include Calendar templates in my header.php? #1049977
    Cynthia Lockley
    Participant

    Well, OK. Thanks for the note that is_page_template(‘photo;php’) won’t bring in the photo template. I’ll take those out.

    Earlier, I had tried changing the top of my tribe-events child day.php template to

    
    if ( ! defined( 'ABSPATH' ) ) {
    	die( '-1' );
    }
    
    get_header('singular');
    ?>
    

    That worked for day views but the same sort of thing doesn’t work for any other views.

    I looked at the sample functions, unfortunately none are setting a page type, so I’ve tried to come up with the following based on other events calendar functions I have but it just gives me a blank page.

    
    <?php  
    //
    // *************************************
    // Add Site Header to Event View pages
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //
    function add_header_to_page( $template ) {
    }
    
    add_filter( 'request', 'add_header_to_page' );
    
    if( tribe_is_event() &&  $query->_is_week() ) 
       $template['page_type'] = array('week', 'tribe_events');
    }
    	get_header('singular');
    ?>
    

    Hopefully trial and error will get me one that works. It seems simple if what I did for the day.php template worked in the template, maybe I just need to add one for each view in the functions.php. Frustrating that the theme doesn’t include headers on plugin pages.

    in reply to: Lost My Entire Site Trying To Update Events Calendar Pro #1034632
    Cynthia Lockley
    Participant

    I have had similar errors in the past if I updated the plugins individually. What I now do is check all the boxes for each Events Calendar plugin that needs to be updated, then do a Bulk Update so they are all handled at the same time. Otherwise, one plugin gets updated but the others are at the old level and this blows its little mind.

    in reply to: Latest .4 release has No Results Found on home page #1015514
    Cynthia Lockley
    Participant

    Brian,
    The snippet in https://theeventscalendar.com/knowledgebase/order-events-in-main-blog-loop-by-post-date/ just reorders the future event posts by date and puts them all at the top of the post feed. That hid all the recent news posts at the bottom below all future events. I wanted all event and news posts sorted by date published so that recent news posts appear at the top intermixed with future events. If a future event was published two weeks ago and a news post about that event was published yesterday, the news post should appear at the top of the post feed instead of after all future event posts.

    Here is my snippet that got worked out with Geoff. See my notes in the comments in the snippet. This is a combination of the snippet given in https://theeventscalendar.com/knowledgebase/customize-rss-feed/ for reordering the posts by date published, with code snippets you supplied earlier for combining all posts in the order published, with modifications from Geoff, and with using your suggestion to uncheck the “Recurring events instances”. See end of Ticket https://theeventscalendar.com/support/forums/topic/after-latest-update-site-says-nothing-found-error-log-is-full-of-calendar-probs/ and the end of ticket https://theeventscalendar.com/support/forums/topic/posts-are-getting-posted-in-the-wrong-order/.

    <?php
    //
    // *************************************
    // Events Calendar fix
    // Sort Events posts by creation / published date rather than start date
    // from Geoff’s second code in ticket at
    // https://theeventscalendar.com/support/forums/topic/posts-are-getting-posted-in-the-wrong-order/
    // NOTE: The “Recurring events instances” setting must be unchecked in the settings for this to work. Otherwise,
    // the two top functions just reorders future events at the top–with all the recent news posts below the future
    // events.
    // Not sure if the third function is really needed now because when the “Recurring events instances” was checked
    // on, that code just gave a list of all post categories starting with April 2007. When the box is unchecked, I get
    // what I want–all posts ordered by the date published–intermixing event posts with news posts.
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //

    add_action( ‘pre_get_posts’, ‘tribe_post_date_ordering’, 51 );

    function tribe_post_date_ordering( $query ) {
    if ( $query->tribe_is_multi_posttype) {
    remove_filter( ‘posts_fields’, array( ‘Tribe__Events__Query’, ‘multi_type_posts_fields’ ) ); $query->set( ‘order’, ‘DESC’ );
    }
    }

    add_action( ‘pre_get_posts’, ‘custom_teardown_tribe_order_filter’, 60 );

    function custom_teardown_tribe_order_filter() {
    if ( is_feed() ) remove_filter( ‘posts_orderby’, array( ‘Tribe__Events__Query’, ‘posts_orderby’ ), 10, 2 );
    }

    add_action( ‘pre_get_posts’, ‘order_by_modified’ );

    function order_by_modified( $query ) {

    if ( $query->is_home() && $query->is_main_query() ) {

    $query->set( ‘orderby’, ‘modified’ );
    }
    }
    ?>

    in reply to: Posts are getting posted in the wrong order. #1015512
    Cynthia Lockley
    Participant

    Well, the code in the functions.php now work as long as the “Recurring events instances” remains unchecked in the settings.

    Brian had said work was going on to find out why and that the next releases would contain the fix. But they seemed to have turned the “Recurring events instances” back on and broke the modification functions. Are there still plans to work on how the recurring events instances affects the modification functions? Or is that part settled–keep that unchecked?

    in reply to: Posts are getting posted in the wrong order. #1015422
    Cynthia Lockley
    Participant

    Geoff,

    See my comments in https://theeventscalendar.com/support/forums/topic/latest-4-release-has-no-results-found-on-home-page/
    After unchecking the “Recurring event instances” that somehow had gotten rechecked, the functions are now working again as desired. Now I’m not sure if the code in the full function is all necessary. Here is what I have that now works with the Recurring event instances unchecked:

    <?php
    //
    // *************************************
    // Events Calendar fix
    // Sort Events posts by creation / published date rather than start date
    // from Geoff’s second code in ticket at
    // https://theeventscalendar.com/support/forums/topic/posts-are-getting-posted-in-the-wrong-order/
    // this just reorders future events–news post still at bottom
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //

    add_action( ‘pre_get_posts’, ‘tribe_post_date_ordering’, 51 );

    function tribe_post_date_ordering( $query ) {
    if ( $query->tribe_is_multi_posttype) {
    remove_filter( ‘posts_fields’, array( ‘Tribe__Events__Query’, ‘multi_type_posts_fields’ ) ); $query->set( ‘order’, ‘DESC’ );
    }
    }

    add_action( ‘pre_get_posts’, ‘custom_teardown_tribe_order_filter’, 60 );

    function custom_teardown_tribe_order_filter() {
    if ( is_feed() ) remove_filter( ‘posts_orderby’, array( ‘Tribe__Events__Query’, ‘posts_orderby’ ), 10, 2 );
    }

    add_action( ‘pre_get_posts’, ‘order_by_modified’ );
    function order_by_modified( $query ) {

    if ( $query->is_home() && $query->is_main_query() ) {

    $query->set( ‘orderby’, ‘modified’ );
    }
    }
    ?>

    in reply to: Posts are getting posted in the wrong order. #1015406
    Cynthia Lockley
    Participant

    I updated to the .4 release that was just put out and now, no matter which version of the post ordering code I put in the functions.php file, the home page says:
    Nothing Found
    Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.

    No calendar, no events, no news posts.

    in reply to: Posts are getting posted in the wrong order. #1015367
    Cynthia Lockley
    Participant

    Nope. Still getting just the categories from 2007 listed on the home page in a very different font. Also, when I try the Older posts link at the bottom of the list of categories, it continues with more categories from April 2007 but the month calendar is blank. Going back restores the October events in the month view.

    The November link below the calendar works correctly.

    See http://events.stcwdc.org/

    in reply to: Posts are getting posted in the wrong order. #1015359
    Cynthia Lockley
    Participant

    That’s a strange one. it just listed all the post categories putting categories at the top for all posts published starting on 1 April 2007.

    Maybe I should have kept the previous reordering clips and just added this one to them?

    I’ll try that now.

    in reply to: Posts are getting posted in the wrong order. #1015335
    Cynthia Lockley
    Participant

    Geoff,

    I did get the home page back. But that didn’t work for reordering the posts.

    I retried it by restoring the first action line above the first function, but that didn’t help either. So the code is now:
    <?php
    //
    // *************************************
    // Events Calendar fix
    // Sort Events posts by creation / published date rather than start date
    // from Geoff’s second code in ticket at
    // https://theeventscalendar.com/support/forums/topic/posts-are-getting-posted-in-the-wrong-order/
    // this just reorders future events–news post still at bottom
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //
    add_action( ‘pre_get_posts’, ‘tribe_post_date_ordering’, 51 );

    function tribe_post_date_ordering( $query ) {
    if ( $query->tribe_is_multi_posttype) {
    remove_filter( ‘posts_fields’, array( ‘Tribe__Events__Query’, ‘multi_type_posts_fields’ ) ); $query->set( ‘order’, ‘DESC’ );
    }
    }
    add_action( ‘pre_get_posts’, ‘custom_teardown_tribe_order_filter’, 60 );

    function custom_teardown_tribe_order_filter() {
    if ( is_feed() ) remove_filter( ‘posts_orderby’, array( ‘Tribe__Events__Query’, ‘posts_orderby’ ), 10, 2 );
    }
    ?>

    But that just orders all future events by date above all the current news posts.

    This is how it worked before: I want all posts listed in the order they were published regardless if they are an event or a news post. In other words if two future events will occur one to two weeks from now, I want then listed below the news post I just wrote yesterday. Sometimes the news posts are about one of those future events, or it is important that users see it right away and not have to scroll through future events to get to the current news posts.

Viewing 15 posts - 16 through 30 (of 167 total)