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 trial

WordPress

Stephen O'Connor
Stephen O'Connor
22,291 Points

Help with WordPress Organisation

I am currently setting up a website for a client and have come across a total mind blank, the site is a brochure website but has a section of products from a product catalogue. The products can be broken down into categories, example below.

  • Products (main category)
  • Manual Wheelchairs (sub category)
  • Wheelchair 1
  • Wheelchair 2
  • Wheelchair 3
  • Mobility Scooters (sub category)
  • Mobility Scooter 1
  • Mobility Scooter 2
  • Mobility Scooter 3
  • Walking Aids (sub category)
  • Walking Aid 1
  • Walking Aid 2
  • Walking Aid 3

Etc etc etc.

But I just can't seem to work out how to organise this, maybe I am over thinking it, but a custom post type of 'Products' was my first thought and have each product created be assigned to a category (Manual Wheelchairs, Mobility Scooters etc) and then display the products assigned to each category when clicked, but for the life of me I cannot get this to work ... What template should I be using to display the products? Should it be a custom post type? Do I use WP_Query to display the products? If so how do I display the products in each category without creating a new template for each category?

Apologies for all the questions but as I said my mind has just went blank ...

Any advise anyone can offer would be much appreciated.

Thanks.

2 Answers

I am not very confident that I understand exactly what you are asking, but off the top of my head have you considered using a portfolio plugin? I think it could be a more efficient way organize products.

Something like Easy Media Gallery could simplify categorizing and briefly describing each product. Just an idea...

Good luck

Stephen O'Connor
Stephen O'Connor
22,291 Points

Sorry, I was rambling because I had been banging my head against a brick wall all night trying to fix the issue. I have 'sort of' fixed it this morning though, which is good.

Thanks for your input anyway.