Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #484968

    Hi,

    I’m new to Enfold. FYI: I’ve installed Enfold on a localhost, as well as its child theme. Globally it’s working, but I cannot manage this issue:

    I took the code given in your 2 posts (http://kriesi.at/documentation/enfold/change-the-sort-order-of-blog-posts-elements/ ◄► http://kriesi.at/documentation/enfold/how-to-add-an-orderorderby-option-to-the-blogpost-sliderportfoliomasonry-grid-element/) and added it to functions.php in my child theme. I went for the random option. But nothing happens. The posts are still shown in the same chronological manner. Besides I tried the alphabetical order ascending et descending — still nothing.
    Is there a trick to know ?

    Additionally, I didn’t really understand this step :
    Go to the blog/post slider/portfolio/masonry grid element settings screen, scroll to the bottom of the option window and configure the order/orderby settings. Then save the template and page and the posts should be displayed based on the new sort order. Where is this menu ?

    Then, could you explain me as well : Attention – if you use the “Random” sort option do not use it in combination with the “pagination” setting? What do you mean by pagination setting ?

    Cheers,

    • This topic was modified 8 years, 8 months ago by Anton.
    #485381

    Hey Anton!

    That’s actually for the portfolios, we’ll get it updated. Try this out instead.

    add_filter('avia_blog_post_query', 'avia_modify_post_grid_query_rand');
    function avia_modify_post_grid_query_rand( $query ) {
    $query['orderby'] = 'rand';
    return $query;
    }

    No further editing should be required. Pagination will not work with random queries so keep that in mind.

    Cheers!
    Elliott

    #485892

    Hallo,

    I changed the code, but nothing happens. At the same time I didn’t find blog/post slider/portfolio/masonry grid element settings screen in order to configure the orderby settings, like it’s mentioned in your tutorial (in may 2014).

    #486105

    Hi!

    Send us a WordPress login and we’ll take a look.

    Best regards,
    Elliott

    #903859

    I have the same issue, i have tried to fix this with this code in my functions but it doesnt work. I am using the blog articles option in Enfold and i want to show the first one first and the last one last but it doesnt work.

    I have been looking for solutions on the enfold forum and tried some codes out in the functions.php but it didntn work at all.

    • This reply was modified 6 years, 3 months ago by Angelo. Reason: added some more text
    #904502

    Hi,

    Please crate a new topic as the one here is old and we would need access to modify.

    Thank you

    Best regards,
    Basilis

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Sort order of Blog Posts explanation needed’ is closed to new replies.