[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 18:04:11 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 |
-------------------------+--------------------------------------------------
Comment (by TrishaM):
Replying to [comment:1 Otto42]:
> 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.
Can you please clarify "add global $post to the front of it" - perhaps an
example? The Codex is not changed yet and until it is I need to know how
to make this "workforme".....thx
--
Ticket URL: <http://trac.wordpress.org/ticket/6741#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list