on the homepage of my site i want to simply display 3 posts from a certain category. i devised this code, put into my child functions.php:
add_action("thematic_indexloop", "font_page_loop");
function font_page_loop(){
query_posts('posts_per_page=3&cat=40');
}
however i noticed that now when i try to do other things on the page using "is_home()" they don't work anymore... almost like the homepage doesn't believe it is a homepage anymore.
i know that i can workaround this by testing for is_category('40') instead, but my curiosity is getting the better of me:
- what is actually happening here?
- is this the best way to be accomplishing what i want?
-- if not... then what is a better way?
thanks for any replies.