The context isn’t really right for creating a new post. You’ll be on single-product.php if you’re viewing an existing post, but not for a post that you’ve yet to create!
I can think of two approaches.
1 – put an “Add Product” link or button onto your existing form and configure it so that a new product is created and you are redirected to that product so that you can now fill in your existing edit form to complete the data entry. I guess this kind of mirrors what the WP Admin does.
2 – just have a page template (or custom template with a custom URL rewrite) with the New Product form on, replicating pretty much what you already have in your edit form.
Hard to give some helpful code with no code in your question but hopefully these pointers will help.
Related Posts:
- Template for specific post of custom post type
- How do I create new content pages for my Custom Post Type?
- How to show the archive / post type description on Single templates
- List of users that clicked a ‘Join’ button at single post
- How do I find a way to create a global single.php for a custom post type?
- Function to allow single post template based on custom taxonomy?
- Conflict in function to allow single post template based on category
- Load info from customposttype into template page
- Assign for all post of a post type a specific single-post template
- Custom post type option page template
- Values show up in custom home page but not in custom post pages
- How to make a custom search template for custom taxonomy?
- DIVs not showing correctly on CPT?
- how to load custom single.php?
- using a template for more then 1 page
- Can I assign a template to a custom post type?
- Taxonomy, Terms, and Template Files
- Using Templates with Custom Post Type UI
- Pre get posts for single post
- Filter a custom field based on selection of another custom field (ACF) [closed]
- Pull Two Posts Into Custom Post Type `single-cpt.php`
- is_singular() not working if called via callback function of admin-ajax.php
- Custom Post Type Archive URL takes over page URL
- WordPress Search documentation: how to improve search query using taxonomy terms, custom meta fields?
- Custom templates for posts like for pages: page-{id} vs single-{id}
- Posts in Multiple Columns and Rows with one single loop
- Retrieve a specific field from taxonomy term through advanced custom fields [closed]
- Count custom post types with a specific meta value
- Display different gutenberg template from selected post attributes
- Post Rank on Single Post page based on custom field
- Displaying Meta Box Image
- Trying to manage templates on a blog with lots of custom taxonomies
- How to get current post id of a custom post type in a loop using template singel-{custom type}.php?
- Pagination Issue: Custom Post Type In Index
- Display posts if a custom field value is equal to another custom field value
- Create second custom 404 page for selected post type
- Rewrite WordPress URL to show CPT meta field data
- Create Template for Custom Post Type same like for Page
- Custom taxonomy and custom post type – wrong permalinks and template
- Can I override a CPT template on a per post basis with Gutenberg block editor?
- A case for Hierarchical Custom Posts
- Custom taxonomy returns 404
- Custom Post Types vs. Advanced Custom Fields (with Repeater Field add-on)
- Flush Rewrite Rules when new site is created on network
- Specific routing for CPT
- How To Import CPT With Only Few TEXT ACF Fields From Front End?
- Custom post type pages return 404 page?
- Cant get paginations on single.php to work with my custom post types
- make permalink go to a custom single.php file
- Inserting custom fields into single.php
- set_query_params using custom params defined in functions file?
- How to define the template for custom posts?
- Query entries from custom post type in an ACF flexible content field
- How do I get_the_postID() for a custom post that uses ACF repeater field?
- adding custom post type “name” to single template
- ACF Relationship Posts how to show additional content
- Archive Template being used instead of Category Template for Custom Post Type
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- How can i show ACF in post excerpts
- count & sum the value of custom field of the author post in dynamic posts
- Grouping custom wordpress post types by acf value
- Set Post Private if no linked Post Objects (ACF)
- Show in an entry a Custom Post Type associated to a post
- How to display posts with plugin (advanced custom fields) field groups?
- WordPress – display relationship between blog posts and custom posts
- Same custom post type with different ACF
- Add custom template ‘sub-page’ to Custom Post type?
- custom post template design with dropdown option
- Custom post type single page uses the right template in preview mode but shows a different template after being posted
- Post Attribute Section missing for Custom post type
- ACF meta_key and meta_value break loop
- search results to show individual ACF fields from inside custom posts
- Videos Post Type with Custom Filters
- How to assign post to category
- Use output of wp_dropdown_categories($args)
- Custom taxonomy with custom post type template not showing
- Display related post content and custom field content
- How to get adjacent_post custom_field value
- Showing custom post user wise with different color in wordpress
- Single Page of Custom Post Type Not Showing the Content Of post
- Organising custom taxonomies and custom post types
- Include template if a post is a single product
- How to load custom post type plugin after acf options page (or get settings from there another way)?
- How to decouple custom post types components from template?
- How to Fix Custom WordPress Loop with Pagination on Single Post View?
- Show Templates in Custom Post Type Editor
- Parent to another Custom Post Type – Template files not being recognized
- $post breaking container loop
- How to avoid hardcoded text in a custom page template?
- Collection of fields in a single post
- query_post while (have post) get_template_part()?
- Using custom post types within a section of a template
- Listing all custom post types using a specific term on the said term’s template page, in groups
- Problem retrieving custom field for a custom post type
- Only One Post of Custom Post Type Appearing on Template Page
- Choose custom post type template by category
- Retrieve a post with its ACF repeater fields in wordpress
- Custom post type is_singular condtional not working when managing sidebar display
- 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