Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I've been playing around with WordPress for a couple of months now and when a client requests that he/she be allowed to modify, add content without my intervention, my defacto standard is WordPress. I've found WP to be extremely transparent and flexible compared to other CMS I've experimented with.

Say I have a phone review website and I use custom post types to list the phones. I'm assuming this is one of intended applications of custom post types, and I would like your suggestions on how best to store the technical specifications of the phone.

Here's an example http://www.theverge.com/products/xperia-acro-s/5697

Click on Full specs and this is an approximate picture of what I'm trying to achieve.

My question is 1) Should I use custom fields ( post meta ) for every single specification? This would mean at least 25 custom fields (Screen size, processor,display and so on..) for each custom post ( here, the phone).

2) Have a separate table in the wordpress database with fields as the tech spec (Screen size, processor,display and so on..)

In addition to display the tech specs every for every phone, I would also like it implement a 'Compare' feature as well as search for a phone based on the spec. Which of the above methods would you suggest for optimum performance during 'compare' or 'search' ?

Thanks for your time.

share|improve this question

1 Answer 1

i would go with custom post types with custom fields for each type. This will allow you or your client a super simple way to add, edit, delete, etc fields of each phone or the phone in general from your WP install.

If you don't feel like programming it, i have used a couple plugins
1. for defining custom types
http://wordpress.org/extend/plugins/more-types/
2. for adding custom fields to not only the custom type you created but also posts, pages, etc. http://wordpress.org/extend/plugins/more-fields/

Once you are set up it would not be hard to compare or search the fields to do what you need with the compare and/or search. Some simple custom programming would be needed.

share|improve this answer
    
I want to add here two other plugin choices - Advanced Custom Fields and Custom Post Type UI. I've had a lot of luck using these two together, and the ACF interface is really nice. The biggest benefit of ACF is the repeater-type custom field, which makes it really easy to add line items when you're not sure how many lines you'll need - like phone features, for example. –  SickHippie Jun 28 '12 at 20:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.