[wp-hackers] Conditional for Posts page
awgandrews at gmail.com
Mon Mar 7 12:15:22 UTC 2011
Maybe the Wiki should be edited to reflect this. Its confusing at the moment.
Thanks very much for the quick response though.
On 7 March 2011 12:08, John Blackbourn <johnbillion+wp at gmail.com> wrote:
> Sorry I phrased that wrong. I meant "will return true for", not "will give you".
> On 7 March 2011 12:07, John Blackbourn <johnbillion+wp at gmail.com> wrote:
>> 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
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers