• Resolved diegocanal

    (@diegocanal)


    Hi David,

    First of all, thank you for sharing such a great plugin. Good work, congratulations!

    I was wondering if it would be possible to change the plugin’s behavior and make it employ the AND boolean operator instead of OR when selecting more than one term for a given taxonomy.

    I think it would be a great addition for a future version, to have two options (OR and AND) available but, in the meantime, in case it is not too complicated, could you please give some advice on how to modify the plugin’s code in order to achieve this?

    Thanks!

    Best Regards,

    Diego

    https://wordpress.org/plugins/flexible-posts-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author DaveE

    (@dpe415)

    Hi Diego,

    I’ve evaluated that option in the past and found that it would make the widget interface far too complex. That being said, the plugin has several filters you can use to hook into and modify the output. You’d want to use the dpe_fpw_args filter and modify the query from an OR to and AND.

    Cheers!

    Thread Starter diegocanal

    (@diegocanal)

    Hi Dave,

    Thanks for your prompt reply.

    I understand your point about the interface getting too complex.

    I had already given it a try using the dpe_fpw_args filter but I am afraid my almost-non-existent programming skills are not up to the task.

    Anyway, thank you very much for your help and, above all, for this great plugin.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is "Category_A AND Category_B" possible when selecting terms for a taxonomy?’ is closed to new replies.