OK, thanks, I’m close to understanding.
I created a category that will be invisible, this is what I want to do:
Exclude Categories From Your Home Page
Placing this code in your index.php file will cause your home page to display posts from all categories except category ID 3.
<?php
if (is_home()) {
query_posts("cat=-3");
}
?>
My category number is 5, so I know to change that.
The only thing is, I’m a noob and don’t want to mess anything up.
It says to add that code to my index.php file… This is what my index.php file looks like:
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>
Is that the right file? Do I just add the code to the bottom so it will look like this?
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>
<?php
if (is_home()) {
query_posts("cat=-3");
}
?>