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 can make an easy template for displaying custom post types. but what i'd like to do is add some editable text to the top of my loop.

for example:

Hey wow, we really make cool products. I think it'd be nice if this text wasn't had coded into the template. any ideas?

product 1
product 2
product 3

and so on.

what is the easiest way to do that? is it possible to attach meta to a post "type"? i know you can sort of do something like that for categories/tags/tax, etc. but for a "type"? should i make it a theme option? would i be better served by making a post type and then displaying it through a taxonomy?

i do want the resulting permalink to be mysite.com/products

share|improve this question
up vote 0 down vote accepted

I believe wp_options is the best solution for this. It's easily editable in an theme option page, but still you must hand code a new option each time you register a new Custom Post Type.You can use these

share|improve this answer
forgot about this post. i agree the options API is probably the best/only solution. – helgatheviking Mar 5 '12 at 22:27

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.