0

I am trying to only show a single parent category and it's children on a specific category page.

How do I exclude all other parent categories and their children?

I am using the plugin Widget Logic. I have gone through the usage and can't quite figure it out.

I have it setup to show just the widget for that category on that categories page, but it won't exclude the categories that aren't associated with that categories page.

I also tried using a custom bit of code accessed from my " functions.php " but no go.

Help appreciated.

* Here is the Widget Logic I have in place: *

is_category(6) || (is_single() && in_category(6))

* Here's the visual result thus far: *

RECENT INSPIRATION POSTS -- Widget

Test for Inspiration July 20th, 2012

Test Inspiration May 24th, 2012

INSPIRATION CATEGORIES -- Widget

Inspiration

-- inspiration child

News (this is a parent category that should not be listed???)

-- news child (this is a child category that should not be listed???)

4

1 に答える 1

0

わかりました、これを理解しました。私は実際に間違って考えていました。ウィジェットロジックの問題ではありません。代わりにこのプラグインを見つけました。

AVH拡張カテゴリ

このプラグインを使用すると、カテゴリウィジェット内で特定のカテゴリをグループ化、並べ替え、表示できます。かなり甘い。

于 2012-08-31T19:08:00.227 に答える