Home › Forums › Calendar Products › Events Calendar PRO › display start day of event in wordpress sidebar
- This topic has 4 replies, 3 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
July 24, 2012 at 7:12 am #22619SandroParticipant
Hi,
I’m working on a little widget that displays upcoming events.
But my date code doesn’t work well, it just prints current time of the server…Any ideas how to do this? echo “”.tribe_get_start_date().””;
Upcoming Events
See All
<?php $postslist = query_posts('order=DESC&orderby=modified&posts_per_page=4&post_type=tribe_events&eventDisplay=upcoming');
echo "”;foreach ($postslist as $loopID => $p) {
echo “”;
echo “post_title . “‘ href='” . get_permalink($p->ID) . “‘>”.get_the_post_thumbnail( $p->ID, array( 50,50, ‘class’ => ‘ sidebarthumb ‘)).”“;
echo “post_title . “‘ href='” . get_permalink($p->ID) . “‘>”.$p->post_title.”“;
echo “”.tribe_get_start_date().””;
echo ” “;
echo “”;
}echo “”;
?>July 24, 2012 at 1:22 pm #22652RobMemberHave you checked out our documentation page (at https://theeventscalendar.com/support/documentation )? If I understand your issue correctly, that should point you in the right direction. If you’re still stumped from there though, let me know. Thanks for your support and patience so far, Sandro!
July 24, 2012 at 2:13 pm #22666SandroParticipantThank you Rob. I figured it out… what a wonderful documentation you have made my life simpler 🙂 For some reason I didn’t notice its existence.
July 24, 2012 at 6:39 pm #22698RobMemberThat is fantastic to hear – thanks for confirming, Sandro, and for the words. Glad to be of service. It sounds like we’re all set here but if you need anything else in the future do let us know.
July 7, 2015 at 6:25 am #977418Support DroidKeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘display start day of event in wordpress sidebar’ is closed to new replies.