Support » Plugin: Ultimate WordPress Auction Plugin » Sorting Items

  • Resolved Zanzara

    (@zanzara)



    Great auction plugin by the way!!!!

    I need to sort the items listed on my site.
    It currently only sorts it by ID number.
    I’d like to change that and sort it alphabetically by the name of the item itself.

    Is this possible? If so, how do I do it.

    Thanks!!

Viewing 1 replies (of 1 total)
  • Plugin Author Nitesh

    (@nitesh_singh)

    Hi @zanzara,

    Sorry for delayed response.

    Thanks by the way for nice comments. You can post your review here – https://wordpress.org/plugins/ultimate-auction/#reviews

    You can do below to sort alphabetically:

    (1) Open file auction-feeder-page.php from plugin’s root directory.

    (2) Go to line no. 58 which has content = ‘paged’ => $paged and put this code below it.

    'orderby'=> 'title',
    'order' => 'ASC',    (ASC meance a to z) (DESC meance z to a)

    There is another way to do it:

    Follow Step (1) and then on line 52 replace Original code to below code:

    Original Code:

    $args = array(
      'posts_per_page' => $page_num,
      'post_type' => 'ultimate-auction',
      'auction-status' => 'live',
      'post_status' => 'publish',
      'paged' => $paged,
      'suppress_filters' => false
    );

    New Code

    $args = array(
      'posts_per_page' => $page_num,
      'post_type' => 'ultimate-auction',
      'auction-status' => 'live',
      'post_status' => 'publish',
      'paged' => $paged,
       'orderby'=> 'title',
       'order' => 'ASC',
      'suppress_filters' => false
    );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.