Hey guys,
I don’t have a featured category. I must have deleted it in the past. Now I want use it because I want to try the mobile theme. How do I recreate the featured category? I tried to manually just make a new category and set it to “HIDE CATEGORY ON POST…..” in the theme panel, but then the category still shows up in the Ajax filter on my homepage and in the category list in the footer. I’m assuming this normally isn’t the case with the featured category?
Hi Bogdan,
I actually did that, but the categoty still showed up everywhere. I have hidden it now with some code I found on this forum:
action set_category_widget_parameters($args) {
$args[‘exclude’] = ‘154’;
return $args;
}
add_filter(‘widget_categories_args’,’set_category_widget_parameters’);
But it would be better if that is not necessary. Any idea why it would still show up? Where is the code the theme uses to hide the orginal category?
Hi,
Make sure you add the slug as well http://screencast.com/t/KWGjWgmXknc
Sorry for not referring to it earlier.
Thank you!
Hello VoZz,
Please notice that the ID is not relevant for Featured category because if you have removed it and then you have added it, the ID will be the different one. So, please notice that the theme uses the name and the slug so the category can be hidden. The name needs to be “Featured” and the slug “featured” If you create a category like that, then it will work like the one that the theme creates by default.
Thanks for your understanding!