818 pointsLike some sort of WPMU DEV God"Mindblowingly helpful member
nickd32
Member
—
13th April 2011 (1 year ago)
Is there any way to change the category order in MarketPress? I tried using the My Category Order plugin, but it only works with posts, not custom post types.
I'm using the built in product category list widget, but that only sorts alphabetically right now, and I need to control the order that the categories appear in the list.
Is there any way to change the category order in MarketPress? I tried using the My Category Order plugin, but it only works with posts, not custom post types.
I'm using the built in product category list widget, but that only sorts alphabetically right now, and I need to control the order that the categories appear in the list.
For the ultimate in MarketPress widget customization, you could simply enable shortcodes in the text widget by including the following in your theme's functions.php file: <?php add_filter('widget_text', 'do_shortcode'); ?>
With that you could use the simple WordPress text widget to display any of the MarketPress shortcodes, like for instance the following:
[mp_list_categories orderby="author"]
[mp_list_categories orderby="id"]
And for easy reference, the following fields work with that shortcode:
"order_by" - What field to order products by. Can be: title, date, ID, author, price, sales, rand (random).
Yes, I thought about doing that, but it still doesn't give me the option I need, which is "I set the order"
In this case the client has multiple categories of products that they want shown in a specific order which has nothing to do with the built-in criteria.
The "My Category Order" plugin mentioned above adds a new option to the 'orderby' set called orderby=order
There's not a way to specify the particular order as far as I can see, but wouldn't that be best achieved by simply hard-coding it with a text widget, seeing as it's going to be so specific?
I'd say these types of things would be best done via a taxonomy widget that can accept custom queries though for your particular circumstance it would be best to have a drag and drop interface or at least some means of specifying the order. I just haven't seen a widget of that sort in particular.
Hi all, this is actually an easy fix (though a bit tedious). You use shortcode to display items in the order they were added, and then edit the dates each product was added to correspond with the product order you are seeking.
[mp_list_products order_by="date"]
I know this impractical for displaying a lot of products, but it worked perfectly for me. I had a site needing some products ordered by year (which I did with shortcode and tags - like this: [mp_list_products tag="2010"] ), and the top 20 products in a grid in an order specified by the client on a daily basis. As the items weren't top sellers and there was no alphabetical order that would make sense, I simply taught the client to edit the post dates to change the product order.
Responses (10)
WPMU DEV Fanatic — 13th April 2011 (1 year ago) #
Hi nickd32,
For the ultimate in MarketPress widget customization, you could simply enable shortcodes in the text widget by including the following in your theme's functions.php file:
<?php add_filter('widget_text', 'do_shortcode'); ?>With that you could use the simple WordPress text widget to display any of the MarketPress shortcodes, like for instance the following:
[mp_list_categories orderby="author"]
[mp_list_categories orderby="id"]
And for easy reference, the following fields work with that shortcode:
"order_by" - What field to order products by. Can be: title, date, ID, author, price, sales, rand (random).
Cheers,
David
Member — 13th April 2011 (1 year ago) #
Yes, I thought about doing that, but it still doesn't give me the option I need, which is "I set the order"
In this case the client has multiple categories of products that they want shown in a specific order which has nothing to do with the built-in criteria.
The "My Category Order" plugin mentioned above adds a new option to the 'orderby' set called
orderby=order...that's what I'm looking for here.
Member — 13th April 2011 (1 year ago) #
Maybe something like what WP does for Pages...
WPMU DEV Fanatic — 13th April 2011 (1 year ago) #
There's not a way to specify the particular order as far as I can see, but wouldn't that be best achieved by simply hard-coding it with a text widget, seeing as it's going to be so specific?
Member — 13th April 2011 (1 year ago) #
That's my next option. But I thought the ability to control category order would be beneficial for lots of other users as well.
WPMU DEV Fanatic — 14th April 2011 (1 year ago) #
I'd say these types of things would be best done via a taxonomy widget that can accept custom queries though for your particular circumstance it would be best to have a drag and drop interface or at least some means of specifying the order. I just haven't seen a widget of that sort in particular.
Member — 19th June 2011 (11 months ago) #
I can use this option too...
Member — 2nd July 2011 (10 months ago) #
Me too - important for marketing to be able to put certain categories and products first in the lists...
Member — 23rd January 2012 (4 months ago) #
Hi all, this is actually an easy fix (though a bit tedious). You use shortcode to display items in the order they were added, and then edit the dates each product was added to correspond with the product order you are seeking.
[mp_list_products order_by="date"]I know this impractical for displaying a lot of products, but it worked perfectly for me. I had a site needing some products ordered by year (which I did with shortcode and tags - like this:
[mp_list_products tag="2010"]), and the top 20 products in a grid in an order specified by the client on a daily basis. As the items weren't top sellers and there was no alphabetical order that would make sense, I simply taught the client to edit the post dates to change the product order.Member — 2nd May 2012 (3 weeks ago) #
This plugin seems to do the job...
A "Taxonomy Order" option appears on the "Products" menu - drag and drop ordering. Sweet as...
http://wordpress.org/extend/plugins/taxonomy-terms-order/
cheers
Gary
Become a member