Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #308130

    Hi can someone tell me where exactly i need to place this coding in the function.php.. I tried it once already and messed up the site .. Thanks
    add_filter(‘avia_post_grid_query’, ‘avf_custom_post_grid_query’);

    function avf_custom_post_grid_query ( $query ) {
    $query[‘orderby’] = ‘title’;
    $query[‘order’] = ‘DESC’;
    return $query;
    }

    #308156

    Hi!

    Install this plugin and then put the code in Plugins > Edit Functions.

    Regards,
    Josue

    #308242

    Hi Josue thank you for the plugin! .. I put the code in and saved but the portfolio grid is still not alphabetized any ideas? Thanks

    add_filter('avia_post_grid_query', 'avf_custom_post_grid_query');

    function avf_custom_post_grid_query ( $query ) {
    $query['orderby'] = 'title';
    $query['order'] = 'DESC';
    return $query;
    }

    #308258

    Hi,

    Can you please create me an administrator account? post it here as a private reply.

    Regards,
    Josue

    #308259
    This reply has been marked as private.
    #308329

    Hi!

    Seems to be working now, here’s a test page i made with a portfolio grid + order reversed.

    Best regards,
    Josue

    #308349
    This reply has been marked as private.
    #308351

    Hi!

    Sure, just change this part in code:

    $query['order'] = 'DESC';
    

    To:

    $query['order'] = 'ASC';
    

    I ended putting the code in the theme functions.php (at the very end), for some reason the plugin i previously mentioned did not work.

    Best regards,
    Josue

    #310228

    Thanks so Much Josue!

    #310230

    You are welcome, glad to help :)

    Regards,
    Josue

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