[wp-hackers] Getting the Post ID for a single page request

David House dave at xmouse.ithium.net
Wed Sep 29 18:19:03 UTC 2004


Quoting Randy Peterman <randy at randypeterman.com>:

> So, the question I have is if someone was using varying versions of
> WordPress would the '$single' variable not be set?

If they've removed the function that forwards you to the search result if only
one is returned, or they've disabled register_globals() in their server, then
it may not work. Try instead using is_single(), although I'm not sure how far
back that goes (ie, I'm not sure if it was implemented in 1.2. It definately
wasn't implemented before that).



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the hackers mailing list