[wp-hackers] Is_single function wrongly commented ?
scribu at gmail.com
Sun Aug 22 10:48:00 UTC 2010
On Sun, Aug 22, 2010 at 6:31 AM, Lox <lox.dev at knc.nc> wrote:
> This is wrong, is_single() returns false for pages
> 1) the fuction comment should be corrected
Indeed. Please open a ticket on trac.
> 2) how can I have is_single to return true for a custom post-type that
> behaves like a page ?
Use is_singular('your-post-type') instead.
More information about the wp-hackers