This file contains hidden or 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 | |
/** | |
* Return the Post Thumbnail URL if $post has thumbnail | |
* $post is a WordPress Post Object | |
* @param $post | |
* @return string | |
*/ | |
private function getPostThumbnailURL( $post ){ | |
if ( has_post_thumbnail( $post->ID ) ){ |
This file contains hidden or 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
Select post_date, count(post_date) as post_count from wp_posts | |
where post_status = 'publish' | |
and ( post_date between '2015-05-01' And '2015-05-30' ) | |
Group By DAYOFYEAR( post_date ) | |
; | |
This file contains hidden or 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 | |
namespace WordPress\Filters; | |
class PreGetPosts{ | |
public $filterPriority = 10; | |
public function __construct( $priority = 10 ){ | |
//TODO: Set your custom properties if needed | |
$this->filterPriority; |
NewerOlder