Skip to content

Commit

Permalink
Update calendar.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alimuzzaman committed Jan 23, 2023
1 parent d59d627 commit 538ac20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion views/calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<div class="wpscp-calendar-wrap">
<?php
//get all options
$_page = isset($_GET['page']) ? $_GET['page'] : '';
$post_type = (isset($_GET['post_type']) ? $_GET['post_type'] : '');
if(isset($_GET['page']) && $_GET['page'] === 'schedulepress-post'){
$post_type = 'post';
Expand Down Expand Up @@ -93,7 +94,7 @@
<?php endif;?>
<?php
$query = new \WP_Query(array(
'post_type' => $post_type ? $post_type : $allow_post_types,
'post_type' => ($post_type && $_page != 'schedulepress-calendar') ? $post_type : $allow_post_types,
'post_status' => array('draft', 'pending'),
'posts_per_page' => -1
));
Expand Down

0 comments on commit 538ac20

Please sign in to comment.