Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRasmus Willemoes Paulsen
12,436 PointsDisplay a list of webshops, through wordpress plugin
Hey Treehouse'rs!
I'm in need of a plugin which allows me to display a list of webshops, which has the following information: Name of webshop Image/thumbnail Phone number URL
It needs to automatically sort it alphabetically, and without the need to use a short code for each entry, or rearrange the whole deal, when a new shop with "b" is to be added.
I imagine that I will add shops from within some fields in the plugin, together with the thumbnail, and then insert 1 single shortcode to display it, on the specific page. Then when I add a new shop, it will just updated automatically.
Anyone knows of a plugin like that?
:)
2 Answers
Zac Gordon
Treehouse Guest TeacherIf I were tackling this, I would setup a new custom post type with the fields I want so that they can add new shops.
Then you can write a custom query for the page you want them all to display. If for some reason, you really need to create a shortcode for it, you can do that as well. Our plugin course has a video on how to make your own shortcode, but you can add the code to a theme functions.php file as well.
I don't know that you're going to find a plugin that does everything you're looking for, but this is very straightforward to do coding yourself.
Rasmus Willemoes Paulsen
12,436 PointsThanks Zac.
I'll look into it :)