[wp-hackers] Conditional for Posts page

John Blackbourn johnbillion+wp at gmail.com
Mon Mar 7 12:07:11 UTC 2011


is_home() will always give you your posts page, whether or not it's
the front page of your site. is_front_page() will always give you your
front page, whether or not it displays your posts or a page defined in
Settings -> Reading.

It's a little counter-intuitive, but you get used to it and realise
that it makes sense.

On 7 March 2011 12:02, Alex Andrews <awgandrews at gmail.com> wrote:
> Hullo there,
>
> Can't seem to find the conditional (something like is_posts()) for the
> post page you set in Settings -> Reading. Is there one? If not, any
> easy way to hack one together?
>
> All the best
>
> Alex
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list