[wp-hackers] Proposed: the_category() - improved separator
flexibilty
Dennis Williamson
dennis at netstrata.com
Mon Oct 11 23:18:27 UTC 2004
I should have pointed out that $membersep comes into play when you use the
'single' or 'multiple' options in the_category() to display links for
category/subcategory hierarchies.
Dennis
At Monday 10/11/2004 03:11 PM, you wrote:
>I also added the ability to override the default separator in calls to
>get_category_parents() via an additional parameter, $membersep, in
>the_category().
>
>Dennis
[snipped up]
> case 'multiple':
> if ($category->category_parent) {
>- $thelist .=
>get_category_parents($category->category_parent, TRUE);
>+ $thelist .=
>get_category_parents($category->category_parent, TRUE, $membersep);
> }
> $thelist .= '<a href="' . get_category_link(0,
> $category->category_id, $category->category_nicename) . '" title="' .
> sprintf(__("View all posts in %s"), $category->cat_name) .
> '">'.$category->cat_name.'</a></li>';
> break;
> case 'single':
> $thelist .= '<a href="' . get_category_link(0,
> $category->category_id, $category->category_nicename) . '" title="' .
> sprintf(__("View all posts in %s"), $category->cat_name) . '>';
> if ($category->category_parent) {
>- $thelist .=
>get_category_parents($category->category_parent, FALSE);
>+ $thelist .=
>get_category_parents($category->category_parent, FALSE, $membersep);
More information about the hackers
mailing list