NattyWP - Community Forum
Welcome, Guest. Please login or register.
NattyWP Community « Configuration and Development « Simplix Theme « Excluding categories from sidebar
Pages: [1]   Go Down
  Print  
Author Topic: Excluding categories from sidebar  (Read 2055 times)
raweiss
Newbie
*
Karma: 0
Posts: 12
View Profile

I would like to edit the function associated with <?php t_show_catwithdesc(); ?>   

to exclude some of the post categories from showing.

The Simplix settings allow you to exclude from top navigation, but it doesn't effect the suidebar display.

I'm assuming i need to edit in admin-framework.php

This code:

function t_show_catwithdesc() {
   $getcats = get_categories('hierarchical=0&hide_empty=1');
            foreach($getcats as $thecat) {
            echo '<li><a href="'.get_category_link($thecat->term_id).'" title="View Posts in &quot;'.$thecat->name.'&quot;: '.$thecat->description.'">'.$thecat->name.'</a>'.$thecat->description.'</li>';
            }
}

Since this setup seems unique to nattywp, I am not sure how to code this to exclude categories.

Rick
Logged
Dmitry A
NattyWP Team

Sr. Member
*****
Karma: 101
Posts: 243
View Profile

You can't edit standard wordpress categories widget and exclude categories from sidebar.
The only options is to code your own categories widget for sidebar with exclude function or you can do some plugin research.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to: