Date not showing outside loop
-
Hi guys!
I’m currently coding a custom template page for the single-event.php page.
Everything is working fine, except getting the date to display.
For the page itself, I am no longer using a loop, as I only need the information from this post.
So, when I add the post thumbnail, I do it like this:
<img src="<?php printf( '%s', get_the_post_thumbnail($event->ID) ); ?> ">
This works fine.
However, when I try to get the date to show, like this:
<p class="beurs-detail-text"> <?php printf( '%s', eo_the_start($format, $event->ID,null,$event->occurrence_id) ); ?> </p>
I get nothing. Am I doing something wrong? I can provide more code if needed :).
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Date not showing outside loop’ is closed to new replies.