From bccd69b10f4f72e4e04db1eee6db245d522e0bdb Mon Sep 17 00:00:00 2001 From: Salman Date: Fri, 15 May 2015 10:49:41 -0400 Subject: [PATCH] Restrict News Archive posts to archive category --- functions.php | 1 + page-news-archive.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/functions.php b/functions.php index c0b0153..84bed8c 100644 --- a/functions.php +++ b/functions.php @@ -452,6 +452,7 @@ function ajax_clas_search_archive() { //Retieves posts of a specific category or $args = array( 's' => $search, 'fields' => 'ids', + 'category_name' => 'archive' ); $archiveQuery = new WP_Query( $args ); $archivePosts = $archiveQuery->get_posts(); diff --git a/page-news-archive.php b/page-news-archive.php index 4729849..bcd682d 100644 --- a/page-news-archive.php +++ b/page-news-archive.php @@ -87,6 +87,7 @@ get_header(); ?>

News Stories