[wp-trac] Re: [WordPress Trac] #6741: in_category not working in WP
2.5 - ignores category id/name
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 16 15:40:40 GMT 2008
#6741: in_category not working in WP 2.5 - ignores category id/name
-------------------------+--------------------------------------------------
Reporter: TrishaM | Owner: anonymous
Type: defect | Status: closed
Priority: normal | Milestone: 2.7
Component: Template | Version: 2.5
Severity: normal | Resolution: worksforme
Keywords: in_category |
-------------------------+--------------------------------------------------
Changes (by Otto42):
* status: new => closed
* resolution: => worksforme
Comment:
Tested and that does work if you add global $post to the front of it, to
ensure you're modifying the right $post variable.
The codex probably needs to be clarified on this point.
--
Ticket URL: <http://trac.wordpress.org/ticket/6741#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list