[wp-hackers] Should child category selection auto-select the
parent category?
Mark Wubben
markwubben at gmail.com
Wed Jul 14 12:25:45 UTC 2004
On Wed, 14 Jul 2004 05:07:02 +1200, Steve <korgan at de-generationx.net> wrote:
> What about just creating a simple new function that checks if the
> Category Parent field from the database/$post is anything other than 0.
> So you'd be able to go
>
> // Inside the loop
> <?php if (!$subcategory($post)) {
> // Whatever you here
> }?>
>
> That way you wouldn't have to change anything and could easily do it as
> a plugin or even a hack.
If I'm not mistaken that's what my plugin does....
More information about the hackers
mailing list