• Resolved holgee

    (@holgee)


    Hello,

    i use the following query to display upcomming events in the footer.php and a page:

    <?php query_posts( array( 'post_type' => 'tribe_events', 'posts_per_page' => 4, 'orderby' => 'upcomming', 'order' => 'DESC', ));?>

    But since the update to 3.0.3 only the events of the actual month are shown, even if there are events in the upcomming month. Also the passed events are still displayed (before the update, the passed events automatically are not shown, only the upcomming)

    are there any changes in the query or the functions of the events calendar ?

    Looking forward for any help – thanks in advance !

    Holger

    https://www.ads-software.com/plugins/the-events-calendar/

Viewing 9 replies - 1 through 9 (of 9 total)
  • upcoming only has one ‘m’. Is it a simple spelling error causing this issue?

    Thread Starter holgee

    (@holgee)

    Hello Andy,

    many thanks for your suggestion ! ??

    But unfortunately also with one “m” or when i change it to 'orderby' => 'all' – only the dates of the actual month are shown …

    seems that the query only gets the dates of the actual month – even if there are further events in the next month. Funny thing is, that i don′t change anything in this query – but since the update the quoted “error” occurs

    Hi holgee, rather than use query_posts() – which is intended for last minute changes to the main query only – can you try switching to tribe_get_events() for this? You could also try swapping out the order parameter for eventDisplay (“upcoming” isn’t a field that can really be used to order the results).

    Thread Starter holgee

    (@holgee)

    Hi Barry,

    many many thanks for your hint – changed the whole query to this:

    <?php global $post;
    $all_events = tribe_get_events(array(
    'eventDisplay'=>'upcoming',
    'posts_per_page'=>4));
    
    foreach($all_events as $post) {
    setup_postdata($post); ?>
    
    <div class="dates-text" id="post-<?php the_ID(); ?>"><meta itemprop="startDate" content="<?php the_event_start_date(); ?>"> <?php echo the_event_start_date(); ?><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>" itemprop="name"><br /><?php the_title();?></a></div>
    <?php } //endforeach ?>
    <?php wp_reset_query(); ?>

    And it works perfectly !!! If a change to 'eventDisplay'=>'all', all of my events are show (even the passed and the events in the future), and with “upcoming” only the next events are displayed …

    all what i want … ??

    Many thanks for your help !

    Excellent, glad you got there ??

    Hello guys!

    I have the same problem and this help would be very useful to me. I’ve searched all my files to change it, but I can’t find it. Is it possible to tell me in which file I should make the changes please?

    Grtz!

    Hi thomaasj, there’s not really enough detail in your post to provide much help – could I ask in any case that you create a new thread of your own?

    Thanks!

    What do you mean with creating a new thread? I don’t understand it in this context, I’m sorry ??

    Grtz

    Hi! I mean, try going here https://www.ads-software.com/support/plugin/the-events-calendar and create a new topic using the form at the bottom of the page ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Upcomming events not shown since Update 3.0.3 ?’ is closed to new replies.