strangerstudios/pmpro-series

Feature: Shortcode to display what posts/series a user has access to

Opened this issue · 3 comments

Create a shortcode that shows a list of series (and links) or Series and posts a user has access to so it may be displayed on any page.

Here is a starting point, abstracted code from the Member Links area of the Series Add On -> https://gist.github.com/andrewlimaza/de319c25aee8ebe2eb4a73ea5471fdd7

Stuff to talk about:

  • Do we want a block, widget, and shortcode?
  • A shortcode that shows all posts for a specific series or all series (not just the ones the user has) could be interesting. Probably a separate shortcode/etc to avoid confusion or could be a parameter.

Let's pitch it.

I'd like the option to leave out "empty" series, where the member does not yet have access to anything

Merging this issue in from #9 with another shortcode request:

Is there a shortcode for the list? Would like to be able to list series at end of each post in series &/or on sidebar. Ideally the list would detect which element of series is currently shown & bold that list element & perhaps lighten the text of posts that aren't yet viewable, or simply show the same not available yet button.