is_home no longer working
-
I have a heavily modded wordpress installation almost ready to go as a small record label online shop. I added category icons as a final touch (they will be artists photos)
Only problem is that in order for them to work I need the sidebar to display these images on category pages only.
So I used conditional tags to make sure of this…as follows:
<?php
if (is_category())
{
get_cat_icon('');
}
?>
All works fine except the main index page no longer thinks it’s the index page!
It tries to display a category icon.
Now I know the trouble lies on my code on the index page because if I strip out everything between the content div tags, it goes back to knowing it’s the index page.
On my index page all I have is three seperate uses of
<?php query_posts('category_name=new-release&showposts=4'); ?>
(each with different categories) – one for latest new releases, one for latest pre-orders and one for a featured album.So does anyone know what tells the conditional tags which is the index page? Are these <php query posts> confusing WP? Why?
Any help would be greatfully received (and with the possibilty of a free CD ??
- The topic ‘is_home no longer working’ is closed to new replies.