How could i only show "sort by latest" at store vendor page?

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 2 reply threads
  • Author
    Posts
    • #36198
      MOHO
      Participant

      I want to only use “sort by latest” at products.

      and hide all other options, thanks.

      SO the user will see the latest at the beginning.

      Thanks.

      Attachments:
      You must be logged in to view attached files.
    • #36231
      WCFM Forum
      Keymaster

      hi,

      kindly add this for the purpose –

      add_filter( 'woocommerce_catalog_orderby', function( $order_by ) {
      	$order_by = array( 'date' => __( 'Sort by latest', 'woocommerce' ) );
      	return $order_by;
      });

      thank you

    • #36274
      MOHO
      Participant

      Thanks it work now.

      please close it.

Viewing 2 reply threads
  • The topic ‘How could i only show "sort by latest" at store vendor page?’ is closed to new replies.