• I am using WP version 4.4 and Woocommerce (latest version). I’m using Aurum theme, the support team their told me to try this plugin.

    I reordered my product categories using this plugin, it works fine to visually reorder them. I also went into categories under the product section and visually reordered them there. On the product page (the front end) the product categories are in no order at all, not alphabetical, not by first added, nothing. Neither reordering them through the plugin or through the category page did anything.

    I am trying to order them by brand, then by “womens” then by “Tops” then “Sweaters” the last one is a sub-category of “Tops”.

    Any ideas?

    Link to my site: https://blueskylingerie.com/shop/somedays-lovin-silence-cropped-sweater/

    Cheers.

    https://wordpress.org/plugins/taxonomy-terms-order/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nsp-code

    (@nsp-code)

    Can you check if the Autosort is turned ON?
    If still not working, can you check with the theme front page template file, if use a get_term() function. If so try to add ‘orderby’ => ‘term_order’

    ‘orderby’ => ‘term_order’ does not appear to work with WordPress 4.6. I’ve created the following shortcode. Alas the result is not in the order I see when I visit Taxonomy Order.

    function myCategories(){
    	$terms = get_terms( array(
    		'taxonomy' => 'category',
    		'number' => 10,
    		'orderby' => 'term_order',
    	) );
    	$result = '';
    	if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
    		$count = count( $terms );
    		$i = 0;
    		$term_list = '<div class="my_term-archive">';
    		foreach ( $terms as $term ) {
    			$i++;
    			$term_list .= '<a href="' . esc_url( get_term_link( $term ) ) . '" alt="' . esc_attr( sprintf( __( 'View all post filed under %s', 'my_localization_domain' ), $term->name ) ) . '">' . $term->name . '</a>';
    			if ( $count != $i ) {
    				$term_list .= ', ';
    			}
    			else {
    				$term_list .= '</div>';
    			}
    		}
    		$result .= $term_list.'';
    	}
    	return $result;
    }
    add_shortcode( 'my-categories', 'myCategories' );
    Plugin Author nsp-code

    (@nsp-code)

    This should work fine, can you include also

    'order' => 'ASC'

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Doesn't Sort Product Categories on Product Page’ is closed to new replies.