Quantcast
Channel: help – WordPress.org Forums
Viewing all articles
Browse latest Browse all 13924

Renssmit on "Don't show particular categories in a post page"

$
0
0

Hello,

I'm trying to hide categories of a post in my latest news section. I tried to try some things but nothing really worked. I'me using theme The Newswire. Unfortunately I can't show my website because I'me making it on localhost. But this is the code that should be changed if I'me not wrong. The category that should be hided is ='slides'. Thanks in advance.. :)

<?php
			if ( have_posts() ) : ?>

            <h2 class="heading-latest"><?php _e('Over ons', 'newswire'); ?></h2>

                <div id="grid-wrap" class="clearfix">

				<?php /* Start the Loop */ ?>
				<?php  while ( have_posts() ) : the_post(); ?>

					<div class="grid-box">

					<?php
						/* Include the Post-Format-specific template for the content.
						 * If you want to overload this in a child theme then include a file
						 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
						 */
						get_template_part( 'content', get_post_format() );
					?>
                    </div>

				<?php endwhile; ?>

                </div>

Viewing all articles
Browse latest Browse all 13924

Trending Articles