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:
<?php $custom_field = get_post_meta($post->ID, 'custom-field-name', $single = true); ?>
<?php echo $custom_field ?>
if you add a custom field called: ‘contact-name’
then you can setup the code to echo the data as follows;
<?php $contact_name = get_post_meta($post->ID, 'contact-name', $single = true); ?>
<?php echo $contact_name ?>
Related Posts:
- How to connect different CPTs together?
- Custom post type role permissions won’t let me read
- Showing User’s Post Counts by Custom Post Type in the Admin’s User List?
- Check if post type has term
- How to remove Filters from post admin page?
- Custom Post Types on Category Pages
- Query custom post type by custom field
- Confusion with adding meta capabilities to a role after registering a Custom Post Type with corresponding ‘capability_type’ parameter
- Include post id[s] into WP_Query()
- How can i avoid the permalink start with ‘blog’ while using the custom post type?
- Using Offset in Custom Post Type Query
- Custom Post Type pagination – normal solutions aren’t helping
- How to let custom post type posts show in standard post archive (like in homepage)?
- remove post-name from title in custom post type
- Sort the main query in subcategories/terms?
- Getting Post ID from slug during init
- Rewrite custom post & taxonomy to share same URL path
- Paginate Custom Post Type Page
- Highlight nav menu terms
- Custom Post Types, Custom Taxonomies and Permalinks ?
- delete custom post based on custom field date
- Get_post_meta() won’t return value
- Pagination Issue: Custom Post Type In Index
- Settings page above CPT page in admin section
- multiple search forms and search results
- wp parse_query not working with custom meta value
- How to create another version of the Category widget?
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Child Theme for Mobile Browsers
- Add html to cpt main page / admin edit.php
- How to use WP_Query in a CPT achive page?
- Have a Custom Post Type index page display taxonomy items instead of posts
- Custom Post Types relationships
- Copy custom field value to post title
- Display different content on homepage depending on post type
- How can i skip same post from taxonomy term?
- just can’t get date-based archives per post-type to work
- WP_Query orderby modified to include custom meta changes
- how to check if custom post type column already exists?
- Posts are duplicating on wp_post_update
- List custom taxonomy specific to one custom post type
- Giving permission to anyone (non-users as well) with a password to edit a post, possible?
- A case for Hierarchical Custom Posts
- Custom title set on quick edit
- Custom archive page for CPT UI
- Filter Posts from the Main Query
- Remotely search WordPress sites using xml-rpc
- P̶l̶a̶c̶e̶h̶o̶l̶d̶e̶r̶ *Default* content in Custom Post Type TinyMCE editor
- Slug for custom post type
- Set a hard-coded page-template (post-type-archive) as home/front-page of my wordpress blog?
- Displaying tags associated with posts in Custom Post Type
- Using custom post type as taxonomy
- set_query_params using custom params defined in functions file?
- WordPress: Custom User Role cannot access Custom Post Type | “Sorry, you are not allowed to access this page”
- How to define the template for custom posts?
- Change WordPress custom field default calendar [closed]
- Auto Expire/Delete Custom Post Type Posts after specified time
- Add post type pages with plugin
- Extend Custom Post Type
- Cannot Save MetaBox Data in Custom Post Type
- Custom post type 404 error on “default” or “numeric” permalinks
- How to register a post type so I have archive page, but don’t have single pages?
- Add Permalink to Post Thumbnail, syntax code issues
- Do stuff when editing or writing a certain custom post type?
- WordPress sitemap with Custom Post Types
- Custom Post Type and Taxonomy Rewrite Error
- Url Rewriting a dynamic wordpress page with parameters
- Display list of Custom Post
- php dynamic content inside shortcode
- how to retrieve related projects in a post but via a custom taxonomy?
- Can’t save meta box data in WordPress using custom post types
- How to avoid duplicate posts queried from custom meta?
- How do I find the count of the current post?
- How to merge 2 custom post type permalinks
- How to use multiple orderby conditions on query search results? (orderby one post type, relevance)
- Show posts from custom post type sorted by category/taxonomy on a one-pager/page
- Add input radio menu to post
- Query a custom taxonomy in a function to create an csv file
- Adding Custom Post Types to category/tag/author archives breaks header content
- Combine all posts into one places
- Mix Facebook and Twitter feed into custom posts
- custom post permalink
- Custom Fields through plugin in a Custom Post Type
- Change the “Allow comments” text for admin edit screen for custom post type?
- Need some suggestion/help with custom post types project
- Custom Homepage As Single Page or Custom Post Type?
- How to loop through custom post type posts
- WordPress Permalink Custom Post type
- Default custom column to off
- Displaying database table in backend of wordpress
- Custom post type blog pagination conflict
- taxonomy terms array not working
- How to display only taxonomies of custom post type in a page?
- Adapting plugin for custom post type?
- Display by tag from different post types
- How can I modify this blog loop to display custom post type posts?
- Test if a Category contains certain Custom Post Types
- Default WordPress Query for a Specific Custom Post Type URL
- using jetbooking for multiple custom post types
- Custom post type pagination conflict result in 404