Skip to content
Pro Requires Foliora Pro

Bookshelf and document categories

Show PDFs and EPUBs on a shelf or grid, grouped by Document categories, with filter, search, lock badges and a lightbox.

1 min read Updated

On this page

1. Categorise your documents#

  1. Create categories under Foliora → Document categories (for example Guides, Catalogues, Reports).
  2. In Media → Library open a PDF or EPUB and choose its Document category.

2. Add the bookshelf#

[foliora_bookshelf]
AttributeValuesDefault
categorycategory slug, or several separated by commasall
idsattachment IDs, comma separated—
styleshelf, gridshelf
columnsnumber4
per_pagenumber24
filtertrue, falsetrue — category buttons
searchtrue, falsetrue
orderbydate, title, modified, menu_orderdate
orderASC, DESCDESC
titletext—
[foliora_bookshelf category="guides" style="shelf" columns="5" filter="true"]
[foliora_bookshelf ids="12,15,19" style="grid" filter="false"]

How it behaves#

  • Covers come from the first-page thumbnails (see Docs & Features).
  • Clicking a book opens it in the lightbox.
  • Documents with access rules show a lock badge; readers without access get the preview or locked card.
  • PDFs and EPUBs mix on the same shelf.

Document categories are a taxonomy (foliora_doc_cat) on attachments. Its terms are deleted when Foliora Pro is uninstalled.