Remove category from blog page
-
I created the blog page using the blog-fullwidth template. How can I remove a category?
https://www.sensenapoli.com/blog/
The full-width.php file code is:<?php /* Template Name: Full Width Page */ get_header(); ?> <!-- Page Title Section --> <?php get_template_part('index', 'breadcrumb'); ?> <!-- /Page Title Section --> <!-- Blog & Sidebar Section --> <div class="container"> <div class="row"> <!--Blog Area--> <div class="col-md-12"> <?php the_post(); ?> <div class="blog-detail-section"> <?php if(has_post_thumbnail()){ ?> <?php $defalt_arg =array('class' => "img-responsive"); ?> <div class="blog-post-img"> <?php the_post_thumbnail('', $defalt_arg); ?> </div> <?php } ?> <div class="clear"></div> <div class="blog-post-title"> <div class="blog-post-title-wrapper" style="width:100%";> <?php the_content(); ?> </div> </div> </div> <?php comments_template('',true); ?> </div> <!--/Blog Area--> </div> </div> <?php get_footer(); ?>
Is here that I must replace “the_post” function?
Using this
$Query = new WP_Query(array ('category__not_in' => array (3)));
Excuse questions that may be trivial
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Remove category from blog page’ is closed to new replies.