[wp-docs] is_archive() page

Gavin Pearce Gavin.Pearce at 3seven9.com
Mon Oct 17 15:24:52 UTC 2011


Hi guys,

 

Robert Lusby & Bill Erickson have just pointed out over on WP-Hackers
that the codex page for is_archive() incorrectly lists $post_types as a
parameter.

 

http://codex.wordpress.org/Function_Reference/is_archive

 

At present is_archive() doesn't accept any parameters.

 

To achieve the effect listed there, a user should use:

is_post_type_archive( $post_type ).

 

Could someone with Codex permissions update for us?    :)

 

Thanks,

Gavin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/wp-docs/attachments/20111017/6532389c/attachment.htm>


More information about the wp-docs mailing list