• Resolved enscored

    (@enscored)


    Hello, I’m using the _glsr_average CSS class to order a Query Loop to show Top Rated Shows. However, using the class seems to overwrite the filters set by the Query.

    If I use the following Query using Advanced Query Loop:

    I get the following results, which is what I want:

    However, when I then add the Additional CSS Class of [_glsr_average] to the AQL Block, it seems to override the Query to show all posts, ordered by average rating.

    Have I got a setting wrong somewhere?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Paul

    (@pryley)

    The code snippet changes the “order by” of the query. So if you add the _glsr_average class to the block, you are telling it that you want to order the query by average rating INSTEAD of whatever “order by” configuration you have set in the block settings.

    Plugin Contributor Paul

    (@pryley)

    But also, if you are using the Advanced Loop Query block, you don’t need to use the code snippet.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Ordering By Average Rating Overwrites Query Settings’ is closed to new replies.