• hey,
    i noticed some people wondering whether it’d be possible to have pages of books under certain categories.
    this might be a particularly rough way of having done it, but here’s what i did to get a library page that looks like this: the-tower.ca/library

    in the ‘subject’ field of each title in your collection, add a keyword that would denote the category group for titles in that category (e.g. history, fiction, etc).

    this could likely also be done in other fields just as easily but i’ll stick with subject for now.

    when all your books are appropriately categorized, you can create a link with each category like so (replacing yoursite.com/library with your library page’s address, and CATEGORY with the appropriate plug for each category you want).

    <a href="http://yoursite.com/library/?searchby=subject&searchbox=CATEGORY&weblib_orderby=author&weblib_order=ASC">Category Title</a>

    for example, for fiction you would put

    <a href="http://yoursite.com/library/?searchby=subject&searchbox=fiction&weblib_orderby=author&weblib_order=ASC">Fiction</a>

    https://wordpress.org/plugins/weblibrarian/

Viewing 1 replies (of 1 total)
  • Plugin Author Robert Heller

    (@robertpheller)

    You can also just add an actual keyword that is the category and then use the keyword field:

    <a href="http://yoursite.com/library/?searchby=keyword&searchbox=CATEGORY&weblib_orderby=author&weblib_order=ASC">Category Title</a>

    And the example case would be:

    <a href="http://yoursite.com/library/?searchby=keyword&searchbox=fiction&weblib_orderby=author&weblib_order=ASC">Fiction</a>

    The weblib_itemlist short code would then list all items with the selected keyword.

Viewing 1 replies (of 1 total)
  • The topic ‘Category Pages’ is closed to new replies.