Category Order For Admins only

0.0/5
<?php
add_shortcode('wpd-order-category', 'wpd_order_category');


function  wpd_order_category(){
	
	if (!current_user_can('administrator')) {
		return;
	}
	
	global $post;
	
	echo get_field('category_order');

}

Comments and reviews

{{ reviewsTotal }} Review
{{ reviewsTotal }} Reviews
{{ options.labels.newReviewButton }}
{{ userData.canReview.message }}

Description

This snippet adds the possibility to order the products from a specific category.

Author

Tags

This snippet is untagged