WordPress.org

Forums

Dynamic Widgets
[resolved] Dynamic widget only on certain post category: what if two cats assigend? (4 posts)

  1. daniel.fuerst
    Member
    Posted 10 months ago #

    Hi there

    First of all many thanks to this great plugin. It's exactly what I have been looking for.

    Only one problem I am facing right now. I do want to assign widgets to post categories. Now if I have 2 categories assigned to one post, i do get an output of both widgets, which is not ideal for me, but of course the plugins logic.

    Is there a way to only display a widget if no other widget meets the requirements/logic?

    Best,

    Daniel

    https://wordpress.org/plugins/dynamic-widgets/

  2. Qurl
    Member
    Plugin Author

    Posted 10 months ago #

    No, I'm sorry.. DW is not capable of having logic between widgets. The logic limits to the requested page. But you can reverse the logic by switching the default Yes to No vv.

  3. daniel.fuerst
    Member
    Posted 10 months ago #

    Thanks for your answer. But that does not do the trick.
    Lets say, we have category x and y and I have assigned one post to both categories. Because i want to display this post in an overview on the frontpage (category x) and also on a more specific page (category y). Now in the overview parts it works fine, but as soon as i go to the single post view, both widget are assigned, because both widget meet the logic also when default No is set.
    Do you understand my problem?

  4. Qurl
    Member
    Plugin Author

    Posted 10 months ago #

    Yes, I understand your problem. And I basically have to repeat what I said before. DW looks at the logic of the requested page, not to logic between widgets. And that's where you're looking for basically. To be honest, I don't see a solution for this being implemented in DW. It's very specific.

    Maybe you have to look in using tags to split it out.

Reply

You must log in to post.

About this Plugin

  • Dynamic Widgets
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.