Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Paul Neumyer
Paul Neumyer
15,301 Points

Modify / Duplicate existing custom post types and template files coded into Theme Forest Theme

I have been taking the Wordpress Theme Development courses here on Treehouse, however I have a different problem when it comes to creating custom post types. I bought a Theme for a client of mine on Theme Forest and I need to duplicate one of the custom post types and template files to a new custom post type, that appears to be coded into the Theme itself. For example, there is a section on Admin Panel that says, Staff. The Staff is a custom post type as well as a Template. In the CPT Plugin, it list under "Additional Custom Post Types", however I have no way of accessing the fields for these custom post types. Here is an example of the page I am talking about:

http://fitnessbykai.com/our-doctors/amy-green-orange-county/

And here is the Theme on Theme Forest: http://themeforest.net/item/fitnessgym-wordpress-sportfitness-theme/6961701?WT.ac=search_thumb&WT.oss_phrase=fitnessgym&WT.oss_rank=1&WT.z_author=madza

Any assistance would greatly be appreciated. Thank you.

2 Answers

Paul Neumyer
Paul Neumyer
15,301 Points

Yes, that is the plugin I have been working with. Turns out there is a Theme Rewrite CPT Slug and Name Options that I missed under the Customize Theme Menu Option. Thanks anyway.

Jimmy Smutek
seal-mask
.a{fill-rule:evenodd;}techdegree
Jimmy Smutek
Python Web Development Techdegree Student 6,629 Points

Hey Paul - have you checked out the CPT UI plugin, by Brad Williams? It's pretty cool because it helps you to keep your custom post types seperate from the theme, so things are a bit more portable for your client.

https://wordpress.org/plugins/custom-post-type-ui/

It's a really quick way to set up custom post types, if you pair it with Elliot Condon's Advanced Custom Fields plugin you can make pretty much anything, very quickly. https://wordpress.org/plugins/advanced-custom-fields/

If you're interested I can throw together a "how to" to show you how I approach this. I use Advanced Custom Fields, and ACF Repeater to build out staff pages.