Add "week" as a filtering option to Birthdays widget
This commit is contained in:
@@ -37,6 +37,11 @@ if ( $date == 'day' ) {
|
||||
$args['day'] = date('j');
|
||||
}
|
||||
|
||||
if ( $date == 'week' ) {
|
||||
$args['year'] = date( 'Y' );
|
||||
$args['week'] = date( 'W' );
|
||||
}
|
||||
|
||||
$posts = get_posts( $args );
|
||||
|
||||
foreach ( $posts as $post ) {
|
||||
|
||||
Reference in New Issue
Block a user