Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Nirmal Kumar Ram

    (@sagarseth9)

    Hello @shagg1e,

    Sorry but currently we don’t have this option. You can use some 3rd party plugin to do what you need.

    Regards,
    Nirmal

    what is the plugin called please

    Plugin Author Nirmal Kumar Ram

    (@sagarseth9)

    Hello @shagg1e,

    You can simply put the following code to your child theme’s functions.php file and it will reorder the food items within their category.

    add_action( 'rpress_fooditems_query', 'rpress_orderby_price' );
    function rpress_orderby_price( $args ){
    	$args['meta_key'] = 'rpress_price';
    	$args['orderby'] = 'meta_value_num';
    	$args['order']	= 'desc';
    	return $args;
    }

    Regards
    Nirmal

    Plugin Author Nirmal Kumar Ram

    (@sagarseth9)

    Hello @shagg1e,

    Did you get a chance to review the code I shared above?

    Regards,
    Nirmal

    Hi Nirmal,

    Yes thanks worked a treat just had to change desc to asc.

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