• Resolved everythingbelton.com

    (@everythingbeltoncom)


    First–absolutely love this plugin.

    Second–having a little problem. On the main page of my site (everythingbelton.com) we run posts and events. They are ordered by the date they are published. In order to achieve this, we previously inserted this snippet into the functions php:

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

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

    When we updated to the latest version of the Events Calendar the snippet no longer works. WordPress looked into it but couldn’t figure out why it was no longer working. They told me to contact the developers so that perhaps I could get a rewrite or a fix.

    In the meantime, I’ve reverted back to the old version–which I love. 🙂 Have a great day folks! Hope to hear from you soon.

    https://wordpress.org/plugins/the-events-calendar/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘PHP code "broken" with new update’ is closed to new replies.