Future calendar posts
-
Ok so I’m using the https://bustatheme.com/wordpress/wp-calendar/
For some reason it won’t show future posts when I want it to, unless you’re logged in. Any ideas?
Here’s my index.php code:
<?php if(!function_exists('wp_calendar')) die(include('_wp.php')); ?> <?php $wp_calendar = wp_calendar(date("F Y", time())); ?> <?php get_header(); ?> <div id="wp_calendar"> <h3><?=$wp_calendar['active_month']?></h3> <ul class="weekdays"> <li><?php _e('Sunday') ?></li> <li><?php _e('Monday') ?></li> <li><?php _e('Tuesday') ?></li> <li><?php _e('Wednesday') ?></li> <li><?php _e('Thursday') ?></li> <li><?php _e('Friday') ?></li> <li><?php _e('Saturday') ?></li> </ul> <ol class="month"> <?php foreach($wp_calendar['calendar'] as $item): ?> <?php if($item['is_day'] == "no"): ?> <li class="noday"></li> <?php else: ?> <li class="<?=(isset($item['is_today']) ? ' today' : '')?><?=(isset($item['posts']) ? '' : ' empty')?>"> <div class="head"><?=$item['day']?><?=(isset($item['is_today']) ? ' *' : '')?></div> <div class="day"> <?php if(isset($item['posts'])): ?> <ul> <?php foreach($item['posts'] as $post): ?> <li><a title="<?=$post['post_title']?>" href="<?=get_permalink($post['id'])?>"><?=truncate($post['post_title'], 150)?></a></li> <?php endforeach; ?> </ul> <?php endif; ?> </div> </li> <?php endif; ?> <?php endforeach; ?> </ol> </div> <div id="author_info"> <?php wp_register(); ?><?php wp_loginout(); ?> </div> <?php get_footer(); ?>
Here’s the link to my site: https://mr-munoz.com/planner I’m a teacher and it’s for my planner.
Any ideas? I know it’s possible….
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Future calendar posts’ is closed to new replies.