Title: Saturday Breaks Polished
Produced by: G-SLiK
Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.
Title: Saturday Breaks Polished
Produced by: G-SLiK
Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.
Title: Just Chillin’
Produced by: G-SLiK
Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.
Title: The Sours
Produced by: G-SLiK
Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.
Are you trying to display only certain categories on your Wordpress blog’s homepage? So was I until researching that this almighty “Loop” holds the solution to the problem. It definitely helps to know a little PHP before you go and tinker with the Loop, but it’s actually rather straightforward here.
To omit certain categories from your homepage, edit index.php.
Find where it reads:
1 | <?php if (have_posts()) : ?> |
And add the following conditional statement before the code:
1 2 3 4 5 | <?php if (is_home()) { query_posts("cat=-3"); } ?> |
This code now will display all categories on the homepage EXCEPT for category 3. You can apply this concept to whichever categories you need to omit. For more than one, you simply separate with a comma.
Title: My Memories
Produced by: G-SLiK
Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.