Tim Rogers
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: wp_list_categories exclude doesn't workForum: Fixing WordPress
In reply to: wp_list_categories exclude doesn't workForum: Fixing WordPress
In reply to: wp_list_categories exclude doesn't workIt should work but it doesn’t work.
Even if I delete the line completely
<?php wp_list_categories('exclude=1&show_count=1&title_li='); ?>
the categories are there still.
Here my complete sidebar.php from /wp-content/themes/hp/sidebar.php[Large code excerpt removed by moderator per forum rules. Please use the pastebin for all large code excerpts. It works better anyway.]
Forum: Fixing WordPress
In reply to: wp_list_categories exclude doesn't workWhich code do you mean excactly?
What you have should work assuming there is a cat with the ID of 1.
What do you mean with that?
(I am not an English native speaker)Forum: Fixing WordPress
In reply to: wp_list_categories exclude doesn't workI have written the named Code in this file:
/wp-content/themes/hp/sidebar.phpNo, I have no active plugins installed.
Thanks for the reply Matt!
I put the add_filter line you suggested in the detection script mobiledetect.php, which I included right before <?php wp_head(); ?> in header.php, but I’m afraid it’s not doing the thing.Yeah but how about if I already have the mobile browser detection set up (for numerous other device eventualities) in something like mobiledetect.php that I include in the header of the wordpress theme.
My detection script has an if statement at the end:if($mobile_browser>0) { // do something header( 'Location: http://whatevercorp.net/?wptheme=mobiblog' ) ; } else { // do something else }so what do I do to use $mobile_browser
thanks, if you’d be kind enough to reply here or to leeroy.hc [at] gmail