an option to hide a category
-
Here is the site I am working on: https://stubbydog.org/live/
My question is: how do I give an option to hide “minor headlines”?
(minor headlines is the one located under featured content gallery – without thumbnail)
Because whenever I put “0(zero)” under “Number of posts to show:” – it always falls back to 3 posts (seems like it already set up by default).Can anybody help me please?? Here is the code:
<div class="minorheadlines"> <?php $recent = new WP_Query("cat=".get_theme_mod ('featured_top_right')."&showposts=".get_theme_mod('featured_top_right_num')); while($recent->have_posts()) : $recent->the_post();?> <div class="minor"> <!--This is the tittle--> <strong> <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> </strong> <!--This is the content--> <?php the_content_limit(250, __("Read more")); ?> </div> <!--minor ended--> <?php endwhile; ?> <?php if(get_theme_mod('featured_top_right')) : ?> <?php endif; ?>
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘an option to hide a category’ is closed to new replies.