3 Blog List Pages on 1 Side. Need help modifying so each shows category

Hi
I had someone help me with a wordpress blog and now they’ve disappeared after a week.
The site has 3 blog list pages, and he made the code so that all categories tagged as Press would go to the Press page, and everything else goes to a military page. But there is a third page. I was hoping to find out how to modify this code so that I can add code that if the category is “information” it goes to the information page.
The code is below

[code]/**

  • do another filter, page “Press” only display the posts which category under “press”
  • and page “Hero Military” display all the posts but exclude the category “press”

*/
// get category “press”
$category_name = ‘press’;
$theCategory = get_term_by(‘name’, $category_name, ‘category’);

$page_is = get_post_meta(get_the_ID(), ‘page_is’, true);
if ( $page_is == ‘press’ ) {
// “press” page only display the posts which category under “press”

if ( $theCategory ) {
$baseARGS[‘cat’] = $theCategory -> term_id;
}
} else {
// “Hero Military” page display all the posts but exclude the category “press”

if ( $theCategory ) {
$baseARGS[‘category__not_in’] = $theCategory -> term_id;
}
}

if ( isset($_POST[‘action’]) && $_POST[‘action’] == ‘get_posts’ ) {
require_once ‘config.theme.php’;
require ‘ajax/ajax_get_blog.php’;
}
[/code]

Sorry need to rethink my answer so deleted.

Sponsor our Newsletter | Privacy Policy | Terms of Service