Title: Magazine Basic
Last modified: August 19, 2016

---

# Magazine Basic

 *  [mrbimble](https://wordpress.org/support/users/mrbimble/)
 * (@mrbimble)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/magazine-basic/)
 * I would like to restrict the categories that are displayed on the home page but
   cannot see where I could apply a filter to do this. Can anyone advise a way?

Viewing 1 replies (of 1 total)

 *  [henkholland](https://wordpress.org/support/users/henkholland/)
 * (@henkholland)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/magazine-basic/#post-1172219)
 * Would that be in your navigation menu (some categories (category-titles) not 
   showing) or on the front page where yo do not want to see posts from some categories?
 * For the latter you need something like this:
 *     ```
       <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
   
        <!-- If the post is in the category we want to exclude, we simply pass to the next post. -->
        <?php if (in_category('3')) continue; ?>
   
        <div class="post">
   
         <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
   
         <small><?php the_time('F jS, Y'); ?></small>
   
         <div class="entry">
           <?php the_content(); ?>
         </div>
   
         <p class="postmetadata">Posted in <?php the_category(', '); ?></p>
        </div> <!-- closes the first div box -->
   
        <?php endwhile; else: ?>
        <p>Sorry, no posts matched your criteria.</p>
        <?php endif; ?>
       ```
   
 * Found here: [http://codex.wordpress.org/The_Loop](http://codex.wordpress.org/The_Loop)

Viewing 1 replies (of 1 total)

The topic ‘Magazine Basic’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [henkholland](https://wordpress.org/support/users/henkholland/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/magazine-basic/#post-1172219)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
