Parsely / wp-parsely

The official WordPress plugin for Parse.ly - makes it a snap to add the required tracking code to enable Parse.ly on your WordPress site.
https://wordpress.org/plugins/wp-parsely/
GNU General Public License v2.0
63 stars 32 forks source link

PCH: ability to filter Related Posts by multiple Sections #2681

Open danielabloch opened 1 month ago

danielabloch commented 1 month ago

Is your feature request related to a problem?

Customers often use multiple sections, or more specifically a section and a sub-section, to organize their content online. The Related Posts filter for Section limits users to selecting one Section when they would like to select multiple.

filter-by-section

Describe the solution you'd like

When using the Related Posts filter for Section, allow users to select multiple sections at once to inform the filter. I believe an OR logic would be helpful here versus AND; that is, as a user, I can filter my results by Health OR News Health versus limiting it to Health AND News Health.

Describe alternatives you've considered

An alternative would be offering another filter by option that is Sub Section, but I believe that would be more cumbersome in terms of usability and would not allow a customer to choose multiple sections.

acicovic commented 1 month ago

Per the docs, it seems that we can already specify multiple section params:

image

I assume this will work for subsections, for example passing ?section=section&section=subsection? Docs say that this is possible for tag and author, but they don't mention section specifically.

Noting that in the plugin we use WordPress categories to fill the drop-down, and that we are unaware of what's defined as a subsection in Parse.ly.