Merge pull request #595 from pixeltrix/fix-category-widget-ordering
Fix ordering of categories in Product Categories widget
This commit is contained in:
commit
7d424aea61
|
@ -177,8 +177,8 @@ class WooCommerce_Widget_Product_Categories extends WP_Widget {
|
|||
|
||||
<p><label for="<?php echo $this->get_field_id('orderby'); ?>"><?php _e('Order by:', 'woocommerce') ?></label>
|
||||
<select id="<?php echo esc_attr( $this->get_field_id('orderby') ); ?>" name="<?php echo esc_attr( $this->get_field_name('orderby') ); ?>">
|
||||
<option value="and" <?php selected($orderby, 'order'); ?>><?php _e('Category Order', 'woocommerce'); ?></option>
|
||||
<option value="or" <?php selected($orderby, 'name'); ?>><?php _e('Name', 'woocommerce'); ?></option>
|
||||
<option value="order" <?php selected($orderby, 'order'); ?>><?php _e('Category Order', 'woocommerce'); ?></option>
|
||||
<option value="name" <?php selected($orderby, 'name'); ?>><?php _e('Name', 'woocommerce'); ?></option>
|
||||
</select></p>
|
||||
|
||||
<p><input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('dropdown') ); ?>" name="<?php echo esc_attr( $this->get_field_name('dropdown') ); ?>"<?php checked( $dropdown ); ?> />
|
||||
|
|
Loading…
Reference in New Issue