Home › Forums › Welcome! › Pre-Sales Questions › Same custom loop code for events not working on WP 4.9.3
- This topic has 4 replies, 2 voices, and was last updated 6 years, 1 month ago by Support Droid.
-
AuthorPosts
-
February 7, 2018 at 1:39 pm #1446902JimmyGuest
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.phpNew install custom Loop: (DOESN’T WORK)
WP 4.9.3 – Events Cal 3.6.1
https://www.artacademy.edu/news-events/events-list.phpLoop 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>
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.
February 7, 2018 at 1:42 pm #1446903JimmyGuest^^^ The above code was not displaying correctly.
PHP LOOP CODE HERE:
'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>
February 7, 2018 at 1:53 pm #1446917JimmyGuestOK, 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
February 8, 2018 at 1:02 pm #1448259VictorKeymasterHi 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,
VictorMarch 2, 2018 at 8:35 am #1468305Support DroidKeymasterHey 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 -
AuthorPosts
- The topic ‘Same custom loop code for events not working on WP 4.9.3’ is closed to new replies.