New Front EN › Support Forums › Ikebana Theme Support › Exclude box fro homepage › Reply To: Exclude box fro homepage
Hi Andrii, I read, and I’ve tried, I’ve created a new page php: page_peros.php copy of page_portfolio.php
I created a new page, “peros” (http://lab.biffi.com/peros/), and I used it as a model “peros”, I edited the file (page_peros.php) to the line 69, and I’ve changed:
$wp_query = new WP_Query( array( ‘posts_per_page’ => $ppp , ‘post_type’ => ‘project’ , ‘paged’ => $paged , ‘post__not_in’ => $exclude_ids,’news’, ‘order’ => $order, ‘orderby’ => $orderby ) );
with:
$wp_query = new WP_Query( array( ‘posts_per_page’ => $ppp , ‘post_type’ => ‘project’ , ‘paged’ => $paged , ‘post__not_in’ => $exclude_ids, ‘order’ => $order, ‘orderby’ => $orderby, ‘tax_query’ => array(
array(
‘taxonomy’ => ‘tagportfolio’,
‘field’ => ‘slug’,
‘terms’ => array( 14,18 ),
‘operator’ => ‘NOT IN’
)
) ) );
Where 14 and 18 are the tags home and news, so I should have a page with a single box (slut tag, 29 – http://lab.biffi.com/project/lorem-ipsum-test/). but I watch that tag is 14 and 18 in a horizontal box tag(no 29 slut), I think I have something wrong
:-(
tnx
e.