I’m working on a site where I’d like to add some testimonials and list them all in a page. It should be fairly simple, I don’t have any need for a widget, carousel or anything like that, just a plain list of testimonials. I wish to add each testimonial via Custom Post Types, and so far I can see/add/edit/delete each testimonial with this in my functions.php file:
What I would like to have is a few custom fields in each post, where I can put name of the contact person, company name and perhaps the website URL for the company. Could anybody show me how that would be done?
Furthermore I was wondering if it’s possible to list all these testimonial in a page with a shortcode or a page template. I’ll be forever grateful, if somebody could help me with this.
I’m using the latest WordPress version, and it would be great if I could avoid using a plugin. Thanks in advance.
Thanks a lot, jamy_za. I think that snippet is quite easy to grasp.
Although, when I put this in my page template-file (and make the page use this template in the admin panel), it’s not using that template – instead it shows the index.php content. What am I doing wrong?
I’m sorry for all these questions, but I can’t seem to figure it out. Thanks in advance.
I just released a plugin for this called PostTypeFactory. I haven’t looked at the advanced custom fields plugin (which I will do now) but in my plugin, I have a built in short code to generate a list of whatever post types you create. Im working on the documentation now but you can check out the site and get the plugin here –