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 | |
for($m=1; $m<=12; ++$m){ | |
echo date('F', mktime(0, 0, 0, $m, 1)).'<br>'; | |
} |
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
// Start of Selection | |
// Initialize the arguments for the WP query to fetch various post types | |
$args = array( | |
'post_type' => ['post', 'session', 'resource', 'video'], // Define post types to query | |
'posts_per_page' => -1, // Set to '-1' to fetch all posts. Replace with a specific number if needed | |
'order' => 'DESC', // Order by descending to get the most recent or viewed first | |
// You can add more arguments here as per your query requirements | |
); | |
// Retrieve the most viewed posts using a function provided by the Post Views Counter plugin |
OlderNewer