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: 3679 Topics: 5
    | 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

     

I Would like to:



Subscribe to Updates


Leave a Reply



Status:

Need to share a file or image? You can upload images to any of the following sites, then share the image URLs in your thread: Imgur, Flickr, CloudUp. To share code, please consider using Gist.

Create New Topic





Need to share a file or image? You can upload images to any of the following sites, then share the image URLs in your thread: Imgur, Flickr, CloudUp. To share code, please consider using Gist.