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
<?php if ( get_the_content() ) { ?> | |
// do or output something | |
<?php } ?> // break php tag for HTML block |
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
<? | |
//How to orderby using multiple meta values | |
$query = new WP_Query( | |
array( | |
'post_type' => 'sessions', | |
'posts_per_page' => -1, | |
'meta_query' => array( | |
'relation' => 'AND', | |
'hour_clause' => array( | |
'key' => 'start_hour', |