Last active
December 24, 2015 16:58
-
-
Save Shelob9/6831552 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$todays_date = date('Y-m-d'); | |
$params = array( | |
'limit' => 4, | |
'where' => 'DATE( event_date.meta_value ) >= "' . $todays_date . '" AND t.post_status = "publish"' | |
); | |
// Run the find | |
$mypod = pods( 'event', $params ); | |
// Loop through the records returned | |
while ( $mypod->fetch() ) { | |
echo '<ul><li><a href="' . $mypod->display( 'permalink' ) . '">' . $mypod->display( 'post_title' ) . "</a></li>"; | |
echo '<li>' . $mypod->display( 'event_date' ) . '</li></ul>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment