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

    Is there a way to change the order of the products on the frontpage? The recent products are starting from right to left, I would like it the reversed. Thanks for a great theme.

    #84911

    Hello,

    You edit includes > helper-templates.php, find this code

    $avia_config['new_query'] = array(
    'post_type' => 'product',
    'post_status' => 'publish',
    'ignore_sticky_posts' => 1,
    "paged" => get_query_var( 'paged' ),
    'posts_per_page' => $shop_item_count,
    'orderby' => 'id',
    'order' => 'desc',
    'meta_query' => array(
    array(
    'key' => '_visibility',
    'value' => array('catalog', 'visible'),
    'compare' => 'IN'
    )
    )
    );

    Replace the order to asc or random.

    $avia_config['new_query'] = array(
    'post_type' => 'product',
    'post_status' => 'publish',
    'ignore_sticky_posts' => 1,
    "paged" => get_query_var( 'paged' ),
    'posts_per_page' => $shop_item_count,
    'orderby' => 'id',
    'order' => 'asc',
    'meta_query' => array(
    array(
    'key' => '_visibility',
    'value' => array('catalog', 'visible'),
    'compare' => 'IN'
    )
    )
    );

    Regards,

    Ismael

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

The topic ‘Frontpage latest products order’ is closed to new replies.