[wp-hackers] "Posts page" feature and is_page()

Andy Skelton skeltoac at gmail.com
Fri Mar 28 02:59:45 GMT 2008


>  is_page() && $wp_query->get_queried_object_id == get_option('page_on_front')

Oops, typo. I meant:

is_page() && $wp_query->get_queried_object_id() == get_option('page_on_front')

But there's this:

is_front_page()

If you want to know whether you're on the posts page, use

$wp_query->is_posts_page

There ought to be a function...

Andy


More information about the wp-hackers mailing list