Support » Plugin: Theater for WordPress » paginate by X number of days

  • I have the following shortcode:

    [wpt_productions groupby="day"]{{thumbnail|permalink}}{{title|permalink}}{{excerpt}}[/wpt_productions]

    This does exactly what I want, except that there are so many films scheduled that the list is very, very long. I’d like to paginate it, but paginating by day displays too few productions and paginating by month displays too many.

    I was screwing around trying to find a PHP solution, but I came up empty. Is there a way to do this in PHP?

    • This topic was modified 4 months, 3 weeks ago by  darrcass.

    The page I need help with: [log in to see the link]

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

    (@slimndap)

    Do you mean a numbered pagination? Eg. < 1 2 3 4 5 >.

    There is no easy way to achieve this.

    I did some custom implementations where the list would only show the first 20 films and then add a ‘load more’ button add the bottom. The button would reveal the next 20 films.

    A simple << previous bunch and next bunch >> would be fine. I don’t need numbered pagination.

    Also, the “limit” attribute doesn’t seem to work for productions when another attribute, like “groupby,” is in use. Works fine for events.

    • This reply was modified 4 months, 3 weeks ago by  darrcass.
    • This reply was modified 4 months, 3 weeks ago by  darrcass.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.