Exclusion from home page results in exclusion from custom archives page
-
Awesome plugin! Thrilled with how easy it is to use.
I have a custom archives.php page which I created based on this guide. My code is as follows:
<?php /* Template Name: Archive page */ ?> <?php $posts_to_show = 1000; //Max number of articles to display $debut = 0; //The first article to be displayed ?> <?php while(have_posts()) : the_post(); ?> <h2><?php the_title(); ?></h2> <ul> <?php $myposts = get_posts( "numberposts=$posts_to_show&offset=$debut" ); foreach($myposts as $post) : ?> <li><?php the_time('d/m/y') ?>: <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?> </ul> <?php endwhile; ?>
I have discovered that using UCE to exclude a category from the home page results in also excluding it from this custom archives page. I can’t figure out why.
Not a big deal and totally not your problem, but figured I’d mention it in case there is an easy solution.
Thanks again.
https://www.ads-software.com/plugins/ultimate-category-excluder/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Exclusion from home page results in exclusion from custom archives page’ is closed to new replies.