I like mrwweb’s suggestion, but if you are trying to do it yourself / for free, you will have to do a few things:
1) Make a new template PHP file with the forms you will need to create a new product, create a new page and assign it the template you created
2) Create your custom post type or decide to use post meta instead for your extra fields
3) In your template, use PHP to process the form and do something like this to insert it as a post in the WordPress database:
$new_post = array(
'post_title' => $post_title,
'post_content' => $post_content,
'post_status' => $post_type,
'post_author' => $author_id,
'post_category' => $category,
);
$new_post_id = wp_insert_post($new_post);
add_post_meta($new_post_id, "product_type", "tshirt");
It’s a lot more work than just that code above of course, just a starting point if you were going to write the solution yourself.
Related Posts:
- Trying to save custom post type from frontend partially working
- front end radio custom taxonomy with custom post type
- Frontend posting – everything saves other than checkboxes?
- Posting to a Custom Post Type from front end – user generated content
- Submitting Custom Post Types with custom fields from Front-end form
- Display custom meta on page that has been check in custom post type
- Front-end Image Upload to Custom Meta Box
- Multi Photo Upload with Caption on Front End for Custom Post Type
- How do I set the default admin sort order for a custom post type to a custom column?
- How can I change the admin search posts fields?
- Development of a WordPress Search Plugin – Best Practices
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- WordPress 4.4+ : How to revision CPT + metadata
- Query custom post type by custom field
- Filter a custom field based on selection of another custom field (ACF) [closed]
- How to get custom metabox image field?
- Using custom field as custom post title
- List custom post types in dropdown
- Detect meta value changes when post is updated (post_updated)
- Search everything (posts, pages, tags, cpt, meta)
- Custom field being erased after autosave
- How to select one major category (or custom taxonomy) for a custom post type?
- How to get source of custom meta image?
- Get post info inside modal window?
- Add Taxonomy Values Within a Custom Post Type RSS Feed
- delete custom post based on custom field date
- Displaying Meta Box Image
- Get_post_meta() won’t return value
- Having trouble with custom date field for CPT query (WordPress)
- How to retrieve custom field types for all posts in WordPress/PHP?
- Display posts if a custom field value is equal to another custom field value
- Custom field default value with counter
- wp parse_query not working with custom meta value
- How to use custom fields to enable sticky posts on custom post types?
- Custom meta fields for specific custom type only
- Custom Fields vs Separate Table
- Check if a specific custom field exists?
- Filtering by Post Meta Custom Fields – Performance
- WP Query—Relationship between two custom post types and their fields
- Why do I lose the content of meta boxes when I leave the page?
- Remove wrong dashes from get_the_title()
- Plugin for custom posts and fields [closed]
- Populate Custom Fields in a Custom Post Type?
- How to change post featured image using a custom field of category?
- Returning a list of custom post types excluding those without a specific meta_value
- How to check if user meta field is empty in conditional else statement
- How to stick custom post at the top in search results
- Custom post type content using custom fields without template
- How to get the upcoming post ID from front end?
- Plugin – Combine Meta Box Input Fields into single saveble record
- Callback to custom field is not working in WordPress REST API
- How to render a custom post type template with custom fields using shortcode
- Get Posts by multiple custom fields is not working
- Cannot save CPT meta box
- custom comments form for custom post type
- Enable Custom Fields For Custom Post Type When CPT Created Using Plugin
- post_per_page ignored in WP_Query
- Sort custom post type by most current date picker
- Remove default WYSIWYG editor without removing custom fields editors
- Display custom post type for specific user
- How do I update_post_meta() or add_post_meta() with an AJAX call
- Update ACF fields on a frontend form? [closed]
- Filtering Custom Post Type by Comparing Date and Two Meta Keys
- How to prevent meta data from being edited in a post?
- Automatically add a character to field in edit post page
- Change Post Meta via AJAX from the posts list table
- Saving metabox keys and storing values as array
- How to create Custom image post?
- Mandatory field in Custom post
- How to store the third party script with HTML code in the wordpress custom input field?
- WP Query from two Custom Post type fields as statement
- How To Read Read Custom Post Type Data in Headless CMS Mode
- Filter custom post type admin list by custom meta column, where the column is another custom posts meta value
- How to display custom field in product description?
- when looping through custom post data not appearing
- Add custom template ‘sub-page’ to Custom Post type?
- Where is get_post_meta value located?
- Adding a Section for Visitors
- Automatic Set Category For A Custom Post Type
- Sort loop by custom field from different post type
- WordPress loop, show only one post per custom field
- Generate slug and meta data if meta field is empty
- Extensive search filtering and results->PDF in the front-end
- one get_posts to return a number of custom posts for each meta value
- Is it possible to make one of two custom fields in Custom Post Type UI Required but not the other?
- Custom Post Type as invoice or order template
- WP_Query get posts where post_name is empty
- Get result from Custom Field in Custom Post type
- Make each Value of custom field show related posts when clicked
- Advanced search form with filters for custom taxonomies and custom fields
- Querying meta values within an array
- Creating entries with image attachements within posts and managing them in a list
- How to Create a Frontend Html-list Editable in the Backend?
- How to grab data (titles, thumbnails and custom fields) from multiple posts to populate a new array efficiently?
- How to get lowest price from custom fields of posts
- Is it possible to specify a time interval (from, to) in ACF with date picker, or other custom field?
- Display ACF object field data using Elementor Custom Query
- Sortable admin columns ordering from custom fields isn’t combine com search and Dropdown filter
- WordPress custom field sorting, weird behavior: the latest post is at the end
- I want to understand plugin implementation of custom posts / taxonomies / metaboxes