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've created CPTs using Types in the past, and I've built custom templates, but finding the method for adding a field to an existing Woothemes CPT is frustrating. I'm struggling to find the correct code to either hook or just straight modify the php? Thoughts?

share|improve this question
1  
Don’t they offer docs and/or support? –  toscho Oct 11 '12 at 5:05
add comment

1 Answer

You can easily add meta box using this plugin http://wordpress.org/extend/plugins/advanced-custom-fields/

The UI of this plugin is not confusing and I also personally use it.

share|improve this answer
    
@IoQ - Thanks, sure do appreciate the help. I Installed the plugin but achieved the same results as I achieved with the plugin Types. I can add new Groups and add new Fields to that new Group, but can not access the existing fields or the existing group of fields used to create the Custom Post Type "Portfolio" within the theme. How can I access and control that existing CPT? –  Steve Oct 11 '12 at 12:17
    
Im confuse on your question. You mean the codes that create your "Portfolio" post type? –  loQ Oct 11 '12 at 12:59
    
I'm working this myself as well. So, far, I've found that I can add a custom field to a Woothemes CPT by editing the file theme-options.php and searching for "portfolio" without the quotes. This brings you to an area where you can see a series of $woo_metaboxes[]. I simply added the following lines of code in the order I wanted it to show up under the Woothemes CPT metabox: (adding code now hold on) –  Steve Oct 11 '12 at 14:49
    
Sorry IoQ didn't see your question before I posted. Yes, if need be. I'd rather use a plugin for brevity sake, and because I feel a bit thick and lethargic in php files. So I'm clawing my way through it hoping someone else can lend a quicker hand. –  Steve Oct 11 '12 at 14:57
    
have you checked your functions.php? Usually it is added there or there might be files which are included for post type purposes. –  loQ Oct 11 '12 at 15:01
show 3 more comments

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.