NattyWP - Community Forum
Your member area
NattyWP Help Desk
Home
Search
Login
Register
Welcome,
Guest
. Please
login
or
register
.
NattyWP Community
«
Configuration and Development
«
Simplix Theme
« Excluding categories from sidebar
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Excluding categories from sidebar (Read 2055 times)
raweiss
Newbie
Karma: 0
Posts: 12
Excluding categories from sidebar
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 "'.$thecat->name.'": '.$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
Re: Excluding categories from sidebar
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
Dmitry A
http://www.nattywp.com
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Announcements
-----------------------------
General
-----------------------------
=> General Discussion
=> Member Sites
=> The Lounge
-----------------------------
Configuration and Development
-----------------------------
=> Home Office
=> Blogus
=> Bongo Theme
=> Photonic theme
=> Newsone theme
=> Folium theme
=> Valtik
=> Groovy theme
=> Suit theme
=> Deluxe theme
=> Business theme
=> Nostra theme
=> Mayones theme
=> Easy Touch theme
=> Kongo Theme
=> Newsday Theme
=> Flashlog Theme
=> Simplix Theme
=> Tribune Theme
=> News Hunter Theme
=> Image Hunter Theme
Loading...