mrengy / vanguard-history

History site for the Santa Clara Vanguard
GNU General Public License v3.0
0 stars 0 forks source link

24 put pagination on collections of media items #97

Closed mrengy closed 1 year ago

mrengy commented 1 year ago

@shekharkhedekar This builds out pagination on the media page. I deployed this to stage for now since there's another branch for your review on dev right now, from https://github.com/mrengy/vanguard-history/pull/93.

A couple of notes:

  1. You might need to upload and publish more media in order to test this locally. In order to do that: upload some images through the "upload media" page and then in the WordPress Dashboard, go to "Media" > "Assistant", select a bunch of items, from the "bulk actions" dropdown, choose "bulk edit", and set the "visibility status" field to "publish", choosing the "replaced" radio button, then click "update".

    Screen Shot 2023-01-28 at 9 20 43 PM
  2. CSS is currently hiding any thumbnails past the 6th one, but they're loaded in the DOM.