removed post in category artist (cat_id 12) from home page view

This commit is contained in:
jorge-vitrubio 2021-06-16 10:23:54 +02:00
parent fd91692984
commit a53c7d8510
1 changed files with 6 additions and 2 deletions

View File

@ -19,9 +19,13 @@ get_header(); ?>
<div class="main-grid">
<main class="main-content">
<div class="bfr_category_archive">
<?php if ( have_posts() ) : ?>
<?php // Start the Loop ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php // category 12 is the "artist" category in the 2021 installation,?>
<?php // if starting from new install this might change, check the category number that you want to hide ?>
<?php $query = new WP_Query( 'cat=-12' ); ?>
<?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>
<?php // coment above, uncoment below to query all posts ?>
<?php // if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('bfr_post'); ?>>
<div class="bfr_post_content">
<header>