Viewing 6 replies - 1 through 6 (of 6 total)
  • Barry

    (@barryhughes-1)

    Hi! You could try adding it to your theme’s functions.php file or to a custom plugin ??

    Thread Starter einsteinsolutions88

    (@einsteinsolutions88)

    Hi Barry,
    Thanks for your reply. I put it in the functions.php but the message is still on top of my later posted blogs.
    But I am absolutely no html expert…. so maybe I made a mistake?

    https://einstein-empowerment.academy/laatste-nieuws/

    Added in Functions (second part)

    <?php
    add_action( ‘wp_enqueue_scripts’, ‘child_enqueue_styles’,99);
    function child_enqueue_styles() {
    $parent_style = ‘parent-style’;
    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,get_stylesheet_directory_uri() . ‘/custom.css’, array( $parent_style ));
    }
    if ( get_stylesheet() !== get_template() ) {
    add_filter( ‘pre_update_option_theme_mods_’ . get_stylesheet(), function ( $value, $old_value ) {
    update_option( ‘theme_mods_’ . get_template(), $value );
    return $old_value; // prevent update to child theme mods
    }, 10, 2 );
    add_filter( ‘pre_option_theme_mods_’ . get_stylesheet(), function ( $default ) {
    return get_option( ‘theme_mods_’ . get_template(), $default );
    } );
    }
    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( ‘TribeEventsQuery’, ‘multi_type_posts_fields’ ) );
    $query->set( ‘order’, ‘DESC’ );
    }
    }
    ?>

    Barry

    (@barryhughes-1)

    Just to confirm – you do have blog posts created more recently than some of your events, that are failing to show first?

    Thread Starter einsteinsolutions88

    (@einsteinsolutions88)

    Yes for sure.

    https://einstein-empowerment.academy/laatste-nieuws/
    The first item is the event I created, starting October 2017.
    Following are three posts writen and posted after publishing the event.

    Kind regards,
    Julia

    Hi Julia,

    I think this may be related to a theme conflict. Could you switch to the default Twenty-Seventeen theme briefly and let me know if the problem still exists?

    Thanks! ??

    Shelby

    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Controlling blog loop by date’ is closed to new replies.