WordPress.org

Ready to get started?Download WordPress

Forums

Zotpress
[resolved] "order" and "sortby" not working, confusing Help page (2 posts)

  1. jackdougherty
    Member
    Posted 1 year ago #

    Katie, thanks for all of your work on improving ZotPress, one of my favorite plugins.
    But "order" and "sortby" are not working correctly in version 5.0.4, as you can see here:
    http://ontheline.trincoll.edu/bibliography/

    The basic display works just fine (in no particular order):
    [zotpress collection="M7AGPJ4D"]

    But no display appears when I try adding this:
    [zotpress collection="M7AGPJ4D" order="author"]

    Nor does it work when I drop the quotation marks:
    [zotpress collection="M7AGPJ4D" order=author]

    Oddly, as you'll see further down the page, chronological order is working, but I cannot sort in descending order with this shortcode (with or without quotation marks):
    [zotpress collection="M7AGPJ4D" sortby="date" sort="desc"]

    The ZotPress Help page is confusing to me because the examples for "order" and "sortby" do not appear, and seem to have been accidentally copied from the "Carl Sagan" cells above it. Whether or not I'm supposed to include quotation marks around all parameters in the shortcode has been one issue that's confused me since the last version, but otherwise it's a great tool.

  2. Katie
    Member
    Plugin Author

    Posted 1 year ago #

    You've found a mighty typo! The correct shortcode is:

    [zotpress collection="M7AGPJ4D" sortby="author" order="desc"]

    ... with or without quotations around the attributes.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic