Support » Plugin: Recencio Book Reviews » Custom sorting on the reviews pages

  • Resolved solerous

    (@solerous)



    This plugin is great for reviewers, but what if a visitor wants to see all the top rated reviews? Or what about by author last name in alphabetical order? Is there a way to add a sorting function the user can toggle on the reviews page?

    Here are some criteria it might be useful to be able to sort on:

    Date (current)
    Rating
    Alphabetical by title
    Alphabetical by author

    The same would go for the genre lists pages. When I click on fantasy, I’d like to have the option to see the top rated first. Same with all books by a given author.

    This would be super helpful!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kemory Grubb

    (@w33zy)

    To me, the order the reviews are displayed on the homepage is a job for the theme. Mostly because reviews are displayed alongside the default post post type and any other post types that maybe installed on the website.

    So it ought to be up to the theme’s designer/developer how they want to join, separate, sort all the post types on a website their theme is installed on. That’s why most themes work poorly with custom post types because they developer cant build for a post type they are not aware of.

    Also, database queries by custom metafields are expensive in WordPress.

    With that said, I am currently experimenting with re-writing the index page feature with a JavaScript framework such as React or VueJS. All those suggestions are already on my todo list. It’s one of the reasons why the plugin was released with basic REST API endpoints for reviews. This feature will probably be a 2.0.0 release.

    Can you email me a link to the website you are working on? I would like to see how you are using the star rating.

    wzy@outlook.com

    Thanks for getting back. I was actually not referring to the home page, but the Reviews Page (as indicated in the title of the topic)

    For clarity that is: myurl/reviews

    Or for fantasy: myurl/genres/fantasy

    I guess you are right though that I should write templates for those. I just don’t know how to do the filtering.

    The site is not live yet, still in development. I hope to get it live this week, though, and then I’ll post the URL.

    Plugin Author Kemory Grubb

    (@w33zy)

    OK, I better understand now. I’ll look into ways and means of overriding a theme’s default archive.php

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom sorting on the reviews pages’ is closed to new replies.