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.

I would like to add a feature to a page to display a short list of people, like the one seen here.

I have done this on other sites by styling lists with css. This time however, it's for a client and I can't trust them to copy and paste a <li>, editing the name, job title and img name without messing it up.

What is the best way to go about creating this so that it can be easily reduced/added to in the dashboard? Basically, so that the user simply clicks "add person" then fills in some fields before updating the page.

Here is the architecture of what I've used in the past (to be styled with css)-

<ul class="people">
<li>
<img src="http://image_path.jpg" alt="a person" />
Jakie
<span> her job</span>
</li>
</ul>
share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

This can be solved using a Custom Post Type and Custom Fields.

Although it can be created manually, a plugin can do it in a breeze.

Using Custom Content Type Manager, I just did this in a couple of minutes:
Custom Content Type Manager resulting interface

Well, I did it fast because I'm used to the plugin. It has a bunch of options that can be overwhelming at first, but once they're understood it's all very easy. So, it's better to install it first in a testing environment before applying to the live site.

And it's very well documented.

share|improve this answer
    
Thanks for the help. I'll give this a go. I'll be back (no doubt, to tell you I've messed up :p) to close question when I have it working. Thanks, again. –  Sue.My.Chin Aug 1 '12 at 11:03
    
Hi, I took up your advice, installed this plugin and it works great thank you for the suggestion. I have one tiny question, however. In my index template file lets say I have something simple like: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php the_title(); ?> <?php endwhile; ?> <?php endif; ?> I then browse to www.mysite.com/?post_type=staff and it will list titles of the posts I have added to the staff content type. How/where can I add the '?post_type=staff' bit into my template file so that it shows 'staff' without having to use that url. Thanks again, Ben –  Sue.My.Chin Nov 22 '12 at 1:23
    
Sorry, perhaps I didn't explain fully. This is my question, I posted the original question asking how to create the list. The above comment, though belated, is an extension of that question. I just thought, as you kindly offered the answer you could maybe help with the little issue I'm having. If not then I will post a new question. Ben –  Sue.My.Chin Nov 22 '12 at 2:12
    
@Sue.My.Chin : Sorry, Ben, too many WPSE & SO tabs opened... Anyway, what you're asking is a New Question... I'll delete that "not a forum" comment right now, and this one afterwards. I suggest you do the same :) –  brasofilo Nov 22 '12 at 2: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.