pmpro-series icon indicating copy to clipboard operation
pmpro-series copied to clipboard

Protected/future posts in Series should respect the site's Advanced Settings for searches and archives

Open kimcoleman opened this issue 2 years ago • 1 comments

In the core PMPro plugin, we support excluding content from the search and archive (also main blog) page that the current user cannot access.

The Series plugin does not respect this setting. We want to update this so that posts in the series are filtered from the loop (blog, archives, searches) when protected AND not available yet for the logged in user to read.

I created a quick and dirty gist here that needs testing and probably a lot of reworking, but its the start of what we need: https://gist.github.com/kimcoleman/6a25ae48a01871c42c944011d280b4bb

Since this change does affect existing sites, we should probably add a filter that’s able to turn on or off hiding series-related posts from loops.

kimcoleman avatar Jan 20 '23 14:01 kimcoleman

This doesn't reproduce any more in v3. Solution is to update core PMPro to v3.

image image image

MaximilianoRicoTabo avatar Feb 26 '24 20:02 MaximilianoRicoTabo