I need to create a Wordpress Custorm Post Type with the following fields, I am not a developer and would appreciate a cut and paste. The Fields are:
Contact Person, Address, Telephone, Cellphone, Fax, Email, Website
HELP
|
I need to create a Wordpress Custorm Post Type with the following fields, I am not a developer and would appreciate a cut and paste. The Fields are: Contact Person, Address, Telephone, Cellphone, Fax, Email, Website HELP |
|||||
|
|
I think you have misunderstood what Custom Post Types are used for, if your trying to gather data try a plugin called Contact-Form-7 or if you want to post data then try using custom fields with the name of Contact Person, Address, Telephone, Cellphone, Fax, Email, Website. You can echo custom fields into your theme files with the following code:
if you add a custom field called: 'contact-name' then you can setup the code to echo the data as follows;
|
|||||||
|
|
The easiest way for non developers to create custom post types is to use the Custom Post Type UI plugin. That said, I don't think custom post types are what you really want, do you really want to show Person, Address, etc on separate pages? What are you actually trying to achieve? |
|||
|
|
|
You would need to add the custom post type in a plugin file, like this
} See for full possible options this page register post type Then to add each field to the post type, you could use post meta.
which you can retrieve with:
This can't be done with simple copy/pasting, it will require some work from your side... |
|||||||||||||||
|