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

So I'm developing a theme where essentially all content will be displayed on a single page (index).

Well, the content isn't exactly conventional. In other words, it's not just a title and body, maybe a few custom post fields. It's very different from section to section.

What I was thinking of doing was just creating all of the content fields using the Theme Options API. So, instead of editing a page, you just go into the theme options area and fill in the content for each section.

My main question is... is there a limit to how much data should be stored as "theme" options? Or, after understanding what I'm doing, is there a better way of accomplishing this?

share|improve this question
Any progress? Was one of the answers helpful? – toscho Oct 6 '12 at 22:52
up vote 0 down vote accepted

Option values are longtext. So you can store up to 4,294,967,295 or 4GB (232 – 1) bytes in an option value. I wouldn’t do that … but feel free to test the edge cases. :)

share|improve this answer

It would be helpful to have a better description of what each type of content will be. Is it just text? Or will some content be image, video or other types of content. Also, I am assuming that each section of content is static, but should be editable from the back-end.

(I believe) There is a way to display content from certain pages on a single page. That would be one option. The advantage being that the page editor in has some formatting tools and such.

The other option would be to create a custom post type for each block of content on your homepage, and then call the most recent post (or 2 or 3 posts) from that type of content. That would be a little more flexible in that each section could easily be updated by adding new posts to that post type. You can also use thumbnails for each post.

Lastly, one other approach might be to use Categories to organize your content. You can call a page or post by its category, and you can also use some of the Category metafields as well. This would be more simple than crating Custom Post Types and might suffice for what you are doing. I just did a page for someone where I listed all of their different "Services" by categories. The Category description is at the top of each different type of Service, and then it lists each one, and then starts with the next category. Works well.

share|improve this answer
I'm more concerned about the fact that each "section" isn't just basic content. It's quite specific... ultimately, is there any reason to think that "theme options" can't handle a bunch of data? – dcolumbus Oct 21 '11 at 0:42

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.