WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Dynamic widget only on certain post category: what if two cats assigend?

[Resolved] Dynamic widget only on certain post category: what if two cats assigend?

  • daniel.fuerst
    Member

    @danielfuerst

    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Qurl
    Member

    @qurl

    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.

    daniel.fuerst
    Member

    @danielfuerst

    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?

    Plugin Author Qurl
    Member

    @qurl

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Dynamic widget only on certain post category: what if two cats assigend?’ is closed to new replies.