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.

For dynamic content across a wordpress website, is it a better practice to create new post types for updating content or using theme options?

I personally find theme options a little more time consuming to code than registering a new post type in functions.php

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

It depends on the type of content.

Is the content dynamic, likely to change, likely to have repetitions of the same types of information, time dependent? I'll probably use a custom post type.

Is the content unlikely to change, or only needs one instance of the information set (like a logo, Google analytics code, social media usernames, etc)? Theme options.

There is another option that's sometimes viable: custom post meta-data. I'm working on a site right now where one of the pages has a list of FAQs set up in an accordion-style interface. My plan is to set up a custom meta-box specifically attached to just that page to hold the key-value pairs for the FAQs. This could be set up as a custom post type, but I'm setting it as custom post metadata. I figure this will be easier for my client, rather than having to learn, remember, and find yet another UI element.

share|improve this answer
    
And even in your third example, it's not questionable. You're talking about custom post meta data, which is something entirely different from both Theme options and Custom Post Types. –  Chip Bennett Sep 4 '12 at 22:51
1  
Thanks @Chip! I fixed it. –  guiniveretoo Sep 5 '12 at 0:41
    
Thanks guiniveretoo! Just what I was looking for (I needed dynamics for the minor things like social media, footer/copyright, etc) –  All4Gaming Sep 5 '12 at 8:43
add comment

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.