WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a site that features tables comparing products over hundreds of pages. Many of these products appear multiple times and I originally made these tables static, and now need a more efficient way to manage them.

For example, if 'Product 1' has a change in price, I'd like to just have it so I can edit the price and it will reflect it in all tables featuring 'Product 1' across the site.

I can already think of some solutions such as custom post types, taxonomies and PHP, but I was hoping to get some insight and suggestions from others before I invest into another inefficient management method.

share|improve this question

If you want a value to update across all tables, you should look at foreign keys. They are designed to be updated once but spread across tables.

share|improve this answer

I'd suggest doing pretty much what you'd alluded to; if you have products which have information attached to them and are being displayed in multiple locations, then a good way to go about it would be a custom post type with a custom field for "price". The "Types" plugin is one decent way to go about this relatively easily, allowing for you to edit this in a prettier way than the Wordpress custom fields editor.

The real question, then, is whether you'd be able to display that information easily in the way that you'd like. A taxonomy attached to that post type would allow you to display all of the products with a particular term (e.g. "yellow widgets") attached, which may or may not meet your needs.

Certainly this is a better solution, if you have lots of products, then simply entering the information in pages and then just version-controlling the crap out of it.

share|improve this answer

Your Answer


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.