Title: [Plugin: Dynamic Widgets] Problem with multiple assigned categories
Last modified: August 19, 2016

---

# [Plugin: Dynamic Widgets] Problem with multiple assigned categories

 *  [pixelschumi](https://wordpress.org/support/users/pixelschumi/)
 * (@pixelschumi)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-problem-with-multiple-assigned-categories/)
 * Hey guys,
 * I’m using the Dynamic widget – Plugin in my website and it is great. But I have
   a little problem with it when I assign more than one category to a post.
 * For example:
    1. I have two categories – News and Projects 2. In News I have 
   widget A and in Projects a widget B 3. If now a Post is assigned to both categories
   both widgets will be shown in the widget-area
 * This happens on the categorie-page and the single-page and depends on the post.
   All other posts which belong to only one category are fine.
 * I’m not sure whether I’ve made a mistake. Perhaps someone has the same problem
   and could fix it.
 * [http://wordpress.org/extend/plugins/dynamic-widgets/](http://wordpress.org/extend/plugins/dynamic-widgets/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Qurl](https://wordpress.org/support/users/qurl/)
 * (@qurl)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-problem-with-multiple-assigned-categories/#post-1683531)
 * Hi pixelschumi,
 * What exactly do you want to achieve when a post is assigned to both categories?
   Cause what you describe now is exactly how it works:
    – Dynamic Widgets finds
   the post belongs to News -> Shows Widget A – Dynamic Widgets finds the post belongs(
   also) to Projects -> Shows Widget B
 * I guess however as you made a forum post here the result is not what you expected.
 *  Thread Starter [pixelschumi](https://wordpress.org/support/users/pixelschumi/)
 * (@pixelschumi)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-problem-with-multiple-assigned-categories/#post-1683535)
 * Hi qurl,
 * thanks for the fast reply 🙂
 * I thought the plugin is based on the categories. What I want to achieve is the
   following. I have a category with projects and one with news. Both have different
   templates. The Projects-loop shows the complete content, the News-loop shows 
   only the excerpt. My Idea was to have the complete project-content under Projects
   and its excerpt under News. Additionally, I have different widgets for each category.
   The result is, if this post is active all widgets are shown.
 * But with your explanation I see problem. If the plugin depends on the post I 
   have to change my layout slightly.
 *  Plugin Contributor [Qurl](https://wordpress.org/support/users/qurl/)
 * (@qurl)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-problem-with-multiple-assigned-categories/#post-1683546)
 * Hi pixelschumi,
 * When you set the categories under the Single Posts section the category is a 
   property of the post. When you set the category under the Category section, the
   post is a property of the category.
 * So, when you want Widget A to be displayed for category News, you should set 
   for Widget A everything to No, except for Roles and Dates. Check the News category
   under the Single Post section and check the News category under the Category 
   section. Same story for widget B, except the other category of course. 😉
 * When you have a post which have both News and Project, then both widgets gets
   displayed in the single post page. However, it shouldn’t display both widgets
   in the category page, only the widget belonging to the category.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Dynamic Widgets] Problem with multiple assigned categories’ 
is closed to new replies.

 * ![](https://ps.w.org/dynamic-widgets/assets/icon-256x256.png?rev=2968917)
 * [Dynamic Widgets](https://wordpress.org/plugins/dynamic-widgets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dynamic-widgets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dynamic-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/dynamic-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dynamic-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dynamic-widgets/reviews/)

## Tags

 * [multiple category](https://wordpress.org/support/topic-tag/multiple-category/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)

 * 3 replies
 * 2 participants
 * Last reply from: [Qurl](https://wordpress.org/support/users/qurl/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-dynamic-widgets-problem-with-multiple-assigned-categories/#post-1683546)
 * Status: not resolved