Tag: WordPress category ID

WordPress: Hiding certain posts from the homepage

[ No Comments ] Posted on July 27, 2010 under WordPress tweaks

Create a special category and insert a code in the functions.php of your theme to prevent some posts from appearing in your homepage. Works only if you configured your homepage as list of latest posts and not as static page.

Excluding certain categories in WordPress post category list

[ No Comments ] Posted on December 2, 2009 under WordPress tweaks

The categories where a particular post belongs are usually listed somewhere in the post page, usually under the post title. For administrative or some other reasons, you want to assign posts to a particular category but you do not want your site visitors to see this category. This is how you prevent one or more category from showing up in the post page.

Hiding certain categories in WordPress navigation

[ No Comments ] Posted on November 30, 2009 under WordPress tweaks

The category list is a useful navigation that normallly comes with a WordPress theme and can usually be found at the sidebar. For a variety of reasons, you might want to prevent some categories from showing in this list while they remain accessible through the dashboard or by manually typing the URL.

WordPress category ID

[ No Comments ] Posted on November 29, 2009 under Definition, WordPress tweaks

The category ID is a unique number assigned by WordPress to each category. Knowing the ID of a category can be useful in certain WordPress tweaks that involves indicating specific category or categories.