Help Desk

Same custom loop code for events not working on WP 4.9.3

  • | Permalink

    I moved an old WP-3.9.2 install to a new WP-4.9.3 install, and am using the same loop coding to query events, but it’s not working on the new install. Same Events Calendar plugin, just an updated version of WP is the only difference between the two installs.

    Old install custom Loop: (WORKS)
    WP 3.9.2 – Events Cal 3.6.1
    https://www.artacademy.edu/new-site-2013/wordpress-news/events-list.php

    New install custom Loop: (DOESN’T WORK)
    WP 4.9.3 – Events Cal 3.6.1
    https://www.artacademy.edu/news-events/events-list.php

    Loop Code:

    
    [code]    'aac-events', 'posts_per_page'=>6, 'eventDisplay'=>'upcoming'));
    
        foreach($get_posts as $post) { setup_postdata($post);?>
    
    
    
                        <a href="" class="eventlinks">
    
    
    
    
                        ID, false, 'm/d/y' ); ?>  
    
                        <hr /> 
    
                   </a> 
    

    [/code]

    Any ideas on why it’s not loading the wp-blog-header ? I assume that’s the problem. I have had file path issues with requiring the wp-blog-header. Let me know what I’m doing wrong. We were on the old free Institutional Calendar Pro, and have not upgraded, because I think you discontinued that product.

    | Permalink

    ^^^ The above code was not displaying correctly.

    PHP LOOP CODE HERE:

        'aac-events', 'posts_per_page'=&gt;6, 'eventDisplay'=&gt;'upcoming'));
    
        foreach($get_posts as $post) { setup_postdata($post);?&gt;
    
    
    
            &lt;a href=&quot;" class="eventlinks"&gt;
    
    
    
    
       ID, false, 'm/d/y' ); ?&gt;  
    
                        <hr /> 
    
                   </a> 
    
    | Permalink

    OK, so I obviously cannot post PHP in your code section. Here is a link to the PHP I’m using for the LOOP

    https://www.artacademy.edu/news-events/plugin-backups/events-code.png

    Posts: 5692 Topics: 14
    | Permalink

    Hi Jimmy!

    Thanks for reaching out to us!

    We only answer pre-sales questions in our Pre-sales forum. If you have a license for one of our plugins, please log in to your account to get premium support in our Help Desk.

    If you encounter problems logging in to your account, please contact us via our contact form > https://theeventscalendar.com/contact/

    Best,
    Victor

     

    Posts: 7
    | Permalink

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

The topic ‘Same custom loop code for events not working on WP 4.9.3’ is closed to new replies.