removed post in category artist (cat_id 12) from home page view
This commit is contained in:
parent
fd91692984
commit
a53c7d8510
|
@ -19,9 +19,13 @@ get_header(); ?>
|
||||||
<div class="main-grid">
|
<div class="main-grid">
|
||||||
<main class="main-content">
|
<main class="main-content">
|
||||||
<div class="bfr_category_archive">
|
<div class="bfr_category_archive">
|
||||||
<?php if ( have_posts() ) : ?>
|
|
||||||
<?php // Start the Loop ?>
|
<?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'); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class('bfr_post'); ?>>
|
||||||
<div class="bfr_post_content">
|
<div class="bfr_post_content">
|
||||||
<header>
|
<header>
|
||||||
|
|
Reference in New Issue