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'm going to use WordPress to manage a mainly static website.

Some of the pages (like the typical about us) have some paragraphs that should be editable from the admin panel. The thing is, I don't want the client to have to deal with the html of the page or anything.

The first thing I thought was to use a page template, so the html is in the template php file, and the content can be edited from the admin panel. The problem is that the paragraphs are divided by some PHP code and some HTML markup that should not be edited, something like this:

<p> This is the first editable paragraph </p>
<?php /* some php code */ ?>
<img src="not-editable-img.png">
<p> This is the second editable paragraph </p>

If I use a page template, I only have one "field", namely the page's content (that would be output using the_content). How can I make it have multiple fields? Something like "text for paragraph 1" and the like?

Should I use a custom post type? That would mean creating a custom post type for each page, and having just a single post for each custom post type. Is that the correct way?

share|improve this question
Ok I've just found advancedcustomfields.com, which seems more or less what I was looking for. Whadya think? – José Tomás Tocino Jun 1 '13 at 17:16
I'm a huge fan of Advanced Custom Fields. It's definitely a must have plugin for any site being managed by WordPress as a CMS. The API is very clean and simple. From within the loop, just call the_field('your_field_name'), or from outside the loop, just additionally call that function with a post id. – Jared Cobb Jun 1 '13 at 18:28

Your Answer


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

Browse other questions tagged or ask your own question.