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
- How to get custom post type post id from slug?
- How to show Y number of custom posts after every X normal posts?
- Custom post types vs post formats : future-proofing – is one less “future proof” than another?
- create a mostly read only CPT
- Taxonomy page returns 404 page not found
- Refine custom posts by author
- WordPress query by multiple Custom fields and order by date
- Unable to filter on field on edit.php page
- How to get only one category of custom post type?
- Correct way to use get_template_part() and get_post_format() with custom post types?
- Changing the header on post listing page in admin area
- How to search for many post types?
- Custom template won’t load for a custom post type (custom permalinks used)
- is_post_type_archive is false when I pass GET parameters in the URL
- Display Child Pages of Custom Post Type Parent Page
- Why isn’t my custom post type archive URL translating?
- Custom post type template but
- Slug Confusion Between Post and Custom Post types?
- How to change path for default WordPress blog posts?
- How to Echo Metadata Value in Currency Format
- Problems with custom taxonomies
- How does: /index.php?post_type=event&event-date=2011-07-25 work? What if it doesn’t work?
- Prevent A Specific Custom Post Type Showing In WP Search Results Page
- Getting post attchment URL to populate a CPT Admin Page Column
- Comment form on custom page template
- get_post_types() can’t get some of my post type
- Sort Archive by Taxonomy
- WordPress admin for a custom post, hide/collapse the main “title” and “description” boxes
- Rewriting the WP Sub Posts plugin to allow one custom post type to be a child of another custom post type
- Use custom post type taxonomy between cpt slug and name
- Manually adding current_page_parent to wp_list_pages()
- Custom Post Status not getting displayed after post update
- Building Link List for Custom Tax
- Published page but it is page not found
- $_SESSION Not working after X amount of page views
- One of my headings is mysteriously coming up as a link in my CPT Archive
- Display child posts from a certain category
- Custom Fields as Post Type Options
- Modifying and Displaying URL’s in a Post Template using parse_url
- Query by post type or category
- Register_post and add_menu & add_submenu conflict?
- How to add categories to a custom post type using wp_insert_post($new_post);