Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1357162

    I have a page on a site where I am using a Post to provide a profile of a speaker for a conference where there are 40+ speakers. On the page displaying the Posts I want the posts to be ordered alphabetically (using their first name) but I cannot see how to do this in the Blog Posts options and I am not technically savvy enough to be able to add code.
    This is the web page: https://berries.net.au/bqi2022/speakers/
    Can anyone give me an easy fix for this please?

    #1357164

    Hey janerichter,

    Thank you for the inquiry.

    We can use the avia_post_slide_query filter to adjust the order of the items in the blog posts element. Adding this code in the functions.php file for example should sort the entries by their title.

    add_filter('avia_post_slide_query', 'avia_post_slide_query_mod');
    function avia_post_slide_query_mod( $query ) {
        $query['orderby'] = 'title';
        $query['order'] = 'ASC';
        return $query;
    }
    

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.