Latest .4 release has No Results Found on home page

Home Forums Calendar Products Events Calendar PRO Latest .4 release has No Results Found on home page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1015414
    Cynthia Lockley
    Participant

    I updated to the .4 release that was just put out and now 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. I had this problem before I reported in an earlier ticket: https://theeventscalendar.com/support/forums/topic/after-latest-update-site-says-nothing-found-error-log-is-full-of-calendar-probs/ The end result of fixing that was directions from Brian:

    If you uncheck this setting here:

    Events > Settings > General Tab > “Recurring event instances”

    The home page then returned and everything in my functions.php file worked correctly .

    I checked my settings and somehow that “Recurring event instances” had gotten rechecked. I unchecked it and now I am getting the correct functions.

    By the way, in the settings for this it says “(only affects list-style views).” That should be modified that it also affects the home page and calendar view.

    #1015429
    Brian
    Member

    Hi Again,

    Sorry for this issue coming back.

    I agree we can look into improving this function.

    Do you have a snippet on your site to change the order of the events when in your main loop?

    Maybe from this guide:

    Order Events by Post Date in the Main WordPress Post Query

    Let me know and I may have a snippet so you can use that Recurrence setting and reorder the events to publish date.

    Let me know.

    Thanks

    #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’ );
    }
    }
    ?>

    #1015807
    Brian
    Member

    Hi,

    We are looking into this issue, but changes to the recurring event system has created some issues here and we are not sure what the issue is.

    Part of the issue is trying to order posts and events together when they use two different order systems and then throwing in removing recurring events seems to be the wildcard that breaks it.

    We are working on a solution, but I do not have a timeline for it.

    If you need this resolved right away I recommend downgrading to 3.11 for now.

    You can download the older versions from your account here on theeventscalendar.com and older versions of the core plugin here: https://wordpress.org/plugins/the-events-calendar/developers/

    And follow these steps for a manual update.

    Manual Updates

    Thanks

    #1021186
    Support Droid
    Keymaster

    This 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Latest .4 release has No Results Found on home page’ is closed to new replies.