Your WordPress site may have some posts which you don’t want to look on the homepage. In such cases, you can easily exclude the category from your homepage. No the code previously mentioned wouldn't work for WordPress.com because it is not CSS code. The code previously mentioned is PHP http://eduardoojcwq.jaiblogs.com/15512821/getting-my-wordpress-exclude-category-on-homepage-to-work