Chris
Supreme Deity
Mind-Blowingly Helpful
Lifetime member
Lifetime Member Likes (0)
Hey guys.
Been loving the Grid plugin built by Nick a couple of months back, so apologies to Nick if I’m treading on his toes here, but I thought I’d try and sort out a couple of bugs in the plugin: I think some of them have come due to changes in the code for MarketPress since you made the plugin, rather than errors on your part!
DOWNLOAD
Download MarketPress Grid plugin 0.3 here
CHANGELOG
Can display by price order in ascending/descending fashion using shortcode.
Hoping to fix the pagination problems next...
INSTRUCTIONS
- Install the plugin by uploading the zip file, or by extracting it and putting it in the /wp-content/plugins/ folder.
- Activate the plugin (you need MarketPress activated as well, obviously).
- Use it in exactly the same way as the [mp_list_products] with optional attributes below:
“paginate” – Whether to paginate the product list. This is useful to only show a subset.
“page” – The page number to display in the product list if “paginate” is set to true.
“per_page” – How many products to display in the product list if “paginate” is set to true.
“order_by” – What field to order products by. Can be: title, date, ID, author, price, sales, rand (random).
“order” – Direction to order products by. Can be: DESC, ASC
“category” – Limits list to a specific product category. Use the category Slug
“tag” – Limits list to a specific product tag. Use the tag Slug
Example: [mp_product_grid paginate="true" page="1" per_page="10" order_by="price" order="DESC" category="downloads"]
Hope this helps guys, points appreciated for both Nick and myself!

Responses (32)
Sales & Support Pro (joined March 2010) Likes (0)
Hi Chris,
Kudos for taking the time out to work on this! Haven't tested myself yet but will do when I get chance.
Folks, if you use this do remember to send some points!
Chris & Nick: It'd be great for you two to liaise over using something like Git or Subversion to merge your changes and maintain one codebase.
Much easier for folks to keep updated then too. You might wanna put this on WordPress.org too (presumably it'll work with the free version of MP too) enabling automatic updates into the future....
Cheers,
Phil
Lifetime Member (joined August 2011) Likes (0)
Yeh, happy too, was planning to put it up on wp.org, but kinda wanna hear back from Nick first, check he's okay with it!
Member (joined October 2008) Likes (0)
Hi Chris,
Thanks for taking this on. And yes, let's put it up on WP.org! Please make sure to include both of us as plugin authors.
Don't worry about treading on my toes -- no ego here. ;) Just trying to make MP a better product for everyone whilst keeping up with my other clients.
One question though about the plugin -- and this may require Aaron's input -- is whether it is really even necessary.
See, the only real difference between [mp_product_grid] and [mp_list_products] is that I've removed the "product description" field (excerpt) and set the CSS to make the products appear like a grid.
It seems that this could EASILY be built into the existing code by adding an additional attribute, like this:
[mp_list_products display="grid"][mp_list_products display="list"]@Aaron -- thoughts on this?
Nick
Member (joined October 2008) Likes (0)
@Chris--
Incidentally, I'm working on a featured product scroller shortcode for MP now -- something like what you see in this theme. Would you be interested in collaborating on that?
Lifetime Member (joined August 2011) Likes (0)
@Nick dude, thanks for the points! I only need another 170 given to me, and I've got my free membership!
Very up for another plugin. Where are you up to so far? The jqueryness looks fun. We could put something on git...? I must say, my understanding of VCS is poor, but I'm keen to learn...
@Aaron despite having just made a new version of this plugin, I would agree that this would be sleeker, and likely result in less people coming on the forum saying "How do I put all the products in a grid"?
Member (joined June 2011) Likes (0)
Chris--
Thanks so much for moving this along. It's great to have the Grid plugin attributes work properly now!
And Nick: A featured product scroller is a terrific idea. Hats off to you and Chris if you can get it up and running. Please keep us posted here on the forum.
Member (joined February 2011) Likes (0)
Wasn't able to download the plugin from the website at the link above. Chrome kept reporting that the download was interrupted.... Any way of attaching it to a post in this thread?
Lifetime Member (joined August 2011) Likes (0)
Ah damn, my stupid web hosts are basically out to ruin my life!
On my phone now, but I'll get it back online tomorrow. If you wanna email me at bigonroad@gmail.com, ill chuck you an email with it in as soon as I get to my PC.
Sorry about this mate!
In other news: I can thoroughly unrecommend Eukhost.com for their appalling service. Nothing but problems, with apparently computer illiterate support staff!
Lifetime Member (joined August 2011) Likes (0)
Think this link should work - http://allaboutchris.org/?download=MarketPress%20Grid%20plugin
Got a mate to try it, says it works. Might be whatever moronic changes my hosts made hasn't filtered through to your bit of the web yet - if so, email me and ill send it to you!
Member (joined September 2008) Likes (0)
Not sure if this has happened with other themes but with NELO the content div is a class and not an ID so the CSS won't work properly.
Simply changing the "#content" to ".content" works fine... I posted this in case anyone else has this experience with a theme they are using.
Member (joined October 2010) Likes (0)
Thanks Chris,
Any dev work to make Marketpress more user friendly is awesome !
Here's some points! Feel free to reciprocate :)
Johnny
Lifetime Member (joined August 2011) Likes (0)
@wecreateyou I’ll have a look at the css – I suspect #content might not really be necessary anyway…
@johnnymestizo Thanks for the points! Pretty nearly there now, only need 50 more! Will repeat the favour when I get round to trying out your plugin.
Member (joined October 2010) Likes (0)
Steady on trying that plugin ! Should have a new version ready by the end of the week...
Member (joined August 2010) Likes (0)
Cheer Chris mate :) just what I needed for a project I'm working on!
Lifetime Member (joined August 2011) Likes (0)
Awesome! Thanks for all the points everyone, I just got over the 400 points limit for my free lifetime membership!
WPMUDEV FTW!
Lifetime Member (joined June 2009) Likes (0)
That is great Chris ;)
Use the contact form and link to your rep points and you'll log in one morning and see lifetime member under your name. Very Cool ;)
Lifetime Member (joined August 2011) Likes (0)
Hehe, exciting stuff. I am genuinely excited actually lol
Member (joined September 2011) Likes (0)
If anyone is interested, I need some help with trying to display product in a grid for MarketPress.
eMail me via here and willing to pay.
Running MarketPress, just have no idea at all on how to actually do the grid part.
Member (joined August 2011) Likes (0)
Hi All,
does this plugin orek for multisites? I have installed it and activated it on the network, but it does not seem to work. I have also tried listing the products on the home page with [mp_list_global_products display="grid"] This will list my global products but not in grid format :(
Lifetime Member (joined August 2011) Likes (0)
Hey.
To use the grid plugin, you use the shortcode [mp_product_grid]
Hopefully it will get taken into core at some point, then you'll be able to use the shortcode as you did above
Bless,
Chris
Member (joined October 2011) Likes (0)
Is anyone willing to further develop this plugin for the global marketplace? :)
Member (joined June 2010) Likes (0)
Hi msmith11
It is already able to do "global marketplace"
In you general settings in network
Member (joined October 2011) Likes (0)
So changing those options will allow the global marketplace page to display all products from my entire network in a grid?
Member (joined October 2007) Likes (0)
the download link is dead again.
can someone please update the download link?
Member (joined November 2011) Likes (0)
I second that. Need the grid option too.
Member (joined September 2008) Likes (0)
Hey just to let you guys know... Grid's for Marketpress is a simple matter of css styling. Just float product box left and you'll have a grid layout.
.mp_product {width:150px; float:left;}Doing it this way you can add the style to the list of Marketpress themes for a variety of layouts that can be selected.
Member (joined October 2007) Likes (0)
@wecreateyou: it is not. The grid shortcode doesn't display the product's content. Of course I could use the normal product listing short code and the hide the content via css but still...
Member (joined October 2010) Likes (0)
works well :)
Member (joined June 2012) Likes (0)
Grid plugin is great! Anyone aware of an Import process or plugin that will import not only the Product data like price, title, etc. but also allow IMAGE path, especially Featured Image Paths to be uploaded? I have a client with hundreds of products / product images. I'd like to upload all the images into the Media Library and then use an import CSV to associate all the products to their images.
Member (joined March 2012) Likes (0)
Hi Nick & Chris,
I've updated my plugin to add support for your plugin/shortcode as well. Details about my plugin are here:
http://premium.wpmudev.org/forums/topic/marketpress-shortcode-helpergenerator
Member (joined May 2010) Likes (0)
I do like this plugin. I had some issues but discovered it is incompatible with the Google Calendar Events plugin, which I use on all my sites. I have it set up on a local dev site and wanted to provide a sample grid of different product types offered on my site. For example, I have some special stationary that I want to show, and only six as a teaser. Then I have another set of different products that I want to show a teaser of on the same page. I'm wondering if there is a short code I can use for that and not have pagination. Currently the short codes appear to be so many of a category per page, and I would like a sneak peak of assorted seasonal categories on the same page. Is that possible?
Another issue is I'm trying to display six items, I have two rows of three, however the second row, first item space is blank and the 6th item is forced into a third row, as if it was pushed to the right somehow.
I use Pagelines framework and really like it. So, I would not be using another theme.
Thanks!
Jan
Member (joined October 2010) Likes (0)
Me and saunt have come up with some CSS tips for displaying marketpress products.
For those who are trying to cut back on plugins.....
http://premium.wpmudev.org/forums/topic/the-ultimate-marketpress-product-styling
Johnny
Become a member