Hey,
The downloads shortcode should already be using an AND relation, doesn’t it for you?
Kind Regards,
Barry Kooij
Thread Starter
Castor
(@castoruk)
When it tried this out it was a standard OR operator, not an AND.
For example if the the shortcode [downloads category=cat1,cat2] was using an AND operator this would only show downloads that are tagged with both cat1 AND cat2. Therefore showing a shorter list of filtered results.
However at the moment it show downloads tagged with either cat1 OR cat2; showing a longer list of results.
Any way this can be done with this plugin?
Thread Starter
Castor
(@castoruk)
Just to add a bit of meat on the bones.
The ‘List category posts’ plugin has a good example of this feature:
https://wordpress.org/plugins/list-category-posts/other_notes/
Take a look at the ‘Using more than one category’ section for details.
Thanks for clarifying this! I’ve just patched this and in the next version (1.8) you can use OR with comma’s (,) and AND with plus sign (+).
GitHub commit: https://github.com/download-monitor/download-monitor/commit/bb7fff1b2a7723440ef6df0bf0f0be5999447190
When is the next version scheduled to be released for this feature to be available?
Thread Starter
Castor
(@castoruk)
Great, thanks for the update.
I’ll try it out when the next release comes out.
Update, I’ve edited class-dlm-shortcodes.php manually and it works perfectly. Thank you!
That’s great to hear! The next version is expected next week but it’s hard to give a good estimation and for me quality will always be more important than meeting deadlines.