[wp-trac] [WordPress Trac] #10822: Post page is 404 when no post found on static page for homepage
WordPress Trac
wp-trac at lists.automattic.com
Wed Oct 28 20:07:34 UTC 2009
#10822: Post page is 404 when no post found on static page for homepage
--------------------------+-------------------------------------------------
Reporter: v.guerard | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Query | Version: 2.8
Severity: normal | Keywords: is_posts_page
--------------------------+-------------------------------------------------
Comment(by davesgonebananas):
You could be searching for the function '''is_home()''' here.
Also, when there are no posts found for the blog index WP doesn't issue a
404, it calls the theme's index.php in which '''have_posts()''' will
return ''false''. Therefore, are you sure the 404 you are seeing is not a
result of your theme's index.php.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10822#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list