YES I’VE SEARCHED MY ASS OFF!! – Exclude category, just a DETAIL left??
-
First solution I found, simple one that is, to exclude a category in the sidebar.php is the following:
<?php wp_list_cats('sort_column=name&exclude=1, 2, 3, 4'); ?>
I simply used it in this tag:
<?php wp_list_cats('sort_column=name&exclude=61'); ?>
like this:
<li class="sidebox"> <h2><?php _e('Pages'); ?></h2> <ul><?php wp_list_pages('title_li=' . 'sort_column=name&exclude=61' ); ?></ul> </li>
THOUGH!! I get the text “sort_column=name” printed above the categories!! (the category #61 dissapeared like wanted though!!)
So you see, just a tiny little annoying detail left..
https://www.luggruff.net/blog <– see it live.
Any solution ASAP?! (I’m totally new with PHP and I just took a shot at the “.” seperation in the tag!!)
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘YES I’VE SEARCHED MY ASS OFF!! – Exclude category, just a DETAIL left??’ is closed to new replies.