I think you may need to correct:
'post-type' => 'tpf_cnm',
and make it:
'post_type' => 'tpf_cnm',
Related Posts:
- Submit post and upload image from front-end
- How to set a custom post type to not show up on the front end
- Front end post editing using a form
- Add custom post type items from frontend
- Front end registration/login & publish/update 1 custom post
- List custom post types in dropdown
- How I upload, save and set a featured image from my frontend?
- Trying to save custom post type from frontend partially working
- Reason action hook won’t work with update_post_meta from frontend form? Alternative?
- front end radio custom taxonomy with custom post type
- Assign category to front end post
- Front end post form won’t post categories to custom post type
- Create and edit posts from front end
- Make custom post type display as a page
- Frontend Form for Custom Post Type
- Upload Image from Front End and Resize
- Frontend posting – everything saves other than checkboxes?
- I am having a problem with form updating/editing WordPress post on the frontend
- WordPress Create Post from front-end
- wp_set_object_terms() not adding new term to custom post and custom taxonomy
- How to restrict CPT post’s fronted view only for specific user roles?
- How to save custom taxonomy from front end post submission
- Insert Custom Post Type data from the front-end by a user
- Crafting WP_Query array, sort by date
- Posting to a Custom Post Type from front end – user generated content
- How to get the upcoming post ID from front end?
- How to make front end form only accept certain values
- Custom Post Type & Meta Box – Displaying meta box information on front end?
- How To Import CPT With Only Few TEXT ACF Fields From Front End?
- Submitting Custom Post Types with custom fields from Front-end form
- How to properly delete custom post type posts programmatically
- Get id from metabox dropdown
- Get admin area editor in frontend
- Better approach for a WordPress Inventory
- Display custom meta on page that has been check in custom post type
- Update ACF fields on a frontend form? [closed]
- Add term for custom taxonomy from front end
- Post visibility option to theme front-end for author to select?
- display custom portfolio tags
- Plugin needed to allow subscribers to post articles on the front end without admin approval [closed]
- How to create Custom image post?
- Front-end Image Upload to Custom Meta Box
- Preview url not working outside wp-admin
- Change custom post taxonomy values from front-end
- Saving Child Terms on front end not setting parent
- WordPress Front-End user restricted taxonomies
- Multi Photo Upload with Caption on Front End for Custom Post Type
- Front End users account with lots of user Roles (not Woocommerce)
- Show “Republished” badge when Post Date is manipulated
- Getting Custom post category from Form
- Add a meta to custom post type which corresponds to a particular taxonomy
- Add a image to a post published on a CPT from the front-end
- Extensive search filtering and results->PDF in the front-end
- Front end page submission form does not attach custom post type
- Issue with permalinks for custom post type
- Check in function on custom page
- create category upon saving post and save post in that category
- Front end post or photo or both
- Get the first post term
- Add Category Taxonomy Support to Custom Post Type
- Registering custom taxonomy with unique name, a good practise?
- custom post type and custom taxonomy permalink
- When we register a custom taxonomy or post type, does the WP database modified at all?
- Post Type only showing for “Admin” under “Appearance” > “Menus”
- Query for posts from any post type but only add instock products
- WP insert post PHP function dynamically generated Custom Fields
- Change Post Title Edit Box
- Disable feeds for specific custom post types
- After deleting a post are terms, and custom meta deleted?
- 1 day after custom date change post status to draft
- Unable to get paginate_links working with a custom query [duplicate]
- Different permalink for CPT and regular Posts/Pages but why?
- Using a custom post type for an RSS feed only
- Best structure / rewrite rules to achieve the following url
- Programatically inserted posts not showing in Posts Table
- Can’t use pagination with custom taxonomy
- Custom post type paging 404 error
- Targeting categories in custom fields
- Script doesn’t trash custom post types. Instead it duplicates the post and generate new versions in the trash
- How to export custom post type with ACF to individual file with automation?
- Mixing Custom Post Types and Page Templates in WordPress 3.7.1
- How to List Custom Post Type Titles Based on Theirs Taxonomy Terms Inside a Nested Loop
- Custom Post Type – Main page for certain posts
- Insert into post button missing on custom post type
- Custom taxonomy and post type rewrite rules
- Filtering custom post pages
- Clone wp-admin/users.php (Users Admin Page)
- WordPress not respecting template hierarchy
- How to check for duplicate record before saving a Custom Post Type
- How do I query with multiple custom fields orderby in same column?
- Display a list of sub-pages of Custom Post Type Parent Page
- test if something is a post or a taxonomy
- Get post from Category by Priority
- Excluding category from loop not working
- Foreach in get_post_types to apply a different filter per post type
- CPT url rewriting : regular posts return 404 error
- conditional based upon the count of current user’s published custom posts
- Two plugins sharing the same custom post type registration
- Custom Post Type & Page Template
- Display posts from category in page