WordPress as a Customized Content Management System

CWD Partners with Linear SEO to Step Up SEO Game
October 30, 2010
Marketing with a Twitter Contest
November 27, 2010
Show all

wordpress-developer-los-angeles

We recently where tasked with solving a very common client request. A local Talent Agency needed very detailed information on the detail page for each of their models in their WordPress driven website. Data such as Height, Age and Experience would need to be entered per Model and ideally in a more sophisticated manner than using the HTML editor within a standard post. It was decided that we needed to implement custom post types and custom fields in their WordPress CMS.

Why Create Custom Post Types and Fields?

Knowing that WordPress has systems in place that allow for the creation of custom post types and custom fields we endeavored to make it happen for this particular website. Custom post types would basically be adding a whole new type of post or page to the WordPress admin sidebar. In our particular instance we would want a new choice named “Talent”. Having this Menu option is a much more elegant solution than teaching a client to use “Posts” and categorize them as “Talent”.

Adding custom fields to this new custom post type would give us the ability to add additional fields in the add/edit “Talent” page. These new fields would be information such as age and height. Once this is set up in this way the end user would simply add a new “Talent” and then fill out the Talent title and main description as you would for any WordPress page or post and then add data in the areas of our new custom fields.

Displaying Custom Field Types

Now all that would need to be done would be to display the data entered into these new custom fields on the front end of the website. We would create a custom post type template by copying the “single.php” file, changing the name to “single-talent.php” and inserting our code into the new template to display the new custom fields. If a post is clicked on that is of the the new custom post type the new template will be defaulted to. In this particular instance we decided to show this information on the sidebar when viewing a talent detail page.

Custom Post Type and Custom Field Solutions

There are many ways to go about implementing a solution like this. You can hand code all of this. It is very easy to find tutorials on this around the web and as always the WordPress codex is a great resource. Custom coding this is a fantastic way to learn the ins and outs of WordPress development and ultimately will give you the most flexibility.

There are also a number of plugins available that streamline this process for you. Magic Fields is probably my favorite of them all. It is very easy to figure out and there is plenty of information on using it around. You still have to get your hands dirty a bit with this plugin although not nearly as much as doing the same thing from scratch.

Connective Web Design is a WordPress Developer Los Angeles that specializes in custom WordPress designs for that suit your needs.