I’m working on a website for a designer and he needs to publish his portfolio. I created a custom post type called portfolio in which every single item in the portfolio is called a project. Ok, the problem is that i don’t want to put the usual fields that i usually have in a post (excerpt, post content, etc.), what i want is to have the following fields shown when he clicks the add new button:
I don’t have a problem with the description and the URL, as they are simple custom fields, but the image upload is the one that i can’t find a way to create.
In my $args variable i have:
'capability_type' => 'post',
Is there a way to tell that my custom post type is based on attachment instead of post?, but behaves as a post, so he can upload the file and the custom fields refer to that specific attachment?
Thanks in advance for your help!
- The topic ‘Custom post type help’ is closed to new replies.