I think you have used wrong tax_input parameter value for wp_insert_post() function it should be array like this
array( 'taxonomy_name' => array( 'term', 'term2', 'term3' ) )
as shown in the following code
$my_post = array(
'post_title' => $title,
'post_content' => $content,
'post_status' => 'publish',
'post_type' => 'faenas',
'tax_input' => array( 'faenas_combenef_category' => array( $location ) )
);
Related Posts:
- Advanced search form with filters for custom taxonomies and custom fields
- Get The Post Type A Taxonomy Is Attached To
- How to limit the number of terms (terms acts like categories)
- What should I use – Taxonomies, custom fields, Post Type?
- Creating Photo Gallery System with Custom Post Type
- Custom Taxonomies Terms as Post Title for Custom Post Types upon Publishing
- Not Able to Insert Taxonomy Term Using wp_insert_post()
- array_pop() expects array, boolean given for $event_type_term ->slug
- post count is wrong when using same taxonomy for 2 different CPT
- How to hook get_terms() to only show count of posts that have custom meta
- Displaying custom post type by first letter through custom taxonomy
- Separate Custom Post Type Taxonomy by Comma
- Custom Taxonomy order by Custom Field
- Trouble adding custom featured image for custom taxonomy TERMS
- Get child terms of current term of the current post
- Is there any performance consideration when using Custom Post Types?
- Creating a function that receives the taxonomy terms that have been changed in a custom post type
- Custom post type / custom fields
- Get the terms of a custom taxonomy for a specific author in author template
- How loop through posts based on custom fields
- Output the content of a term organised by each of the CPT?
- Custom Posts Hierarchy? (State/City/Restaurant)
- How to get posts from multiple custom post types according to it’s custom taxonomy terms?
- wp_query to find posts by year and month
- How to check the terms in single custom post type template
- Displaying a custom post types custom taxonomy value?
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- Update post terms with custom taxonomy
- Filtering WP_Query Dynamically on the Front-End
- Get template part using a custom taxonomy term
- How to restrict users and admin from creating new taxonomy terms?
- using $wpdb to get custom post type with term
- Allow user to set custom order to a list of custom taxonomies?
- Displaying custom taxonomy in the admin list of a custom post type
- search also in taxonomy, tags and custom fields
- Which post does a taxonomy term belongs to?
- How do I associate a custom post type with another through a taxonomy or storing an ID in a custom field?
- How do I display the taxonomy term alongside the post type post title?
- Show custom post type relationships by taxonomy
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- How do I display the taxonomy for a custom post type in an array
- How do I require the specification of term in a custom post type and custom taxonomy?
- Custom Post, set object Taxonomy terms in plugin
- Hierarchy and access control for Custom Post Types (CPT)
- Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)
- Display taxonomy terms, child terms and posts in a template
- Use custom walker to add taxonomy terms to main nav menu
- Add term to custom post type on draft
- Show fields based on taxonomy selection in editor
- Permalinks: custom structure for taxonomy – tags?
- How to get WordPress term attached to the Post?
- Get parent category id from child category page for custom taxonomy
- Creating custom post type with custom taxonomy and custom fields programatically
- How to get only child terms from a custom taxonomy of current post type?
- How to Display Posts From Category Within a Custom Taxonomy?
- How to get_term_meta on single custom post?
- The Difference Between Categories and Tags and Taxonomies and Terms
- Category Search / Custom Post Type search on my website. Custom Post Types that are “page-like”?
- Many to many to many custom post relationships
- How to fetch custom post types with its full data on wordpress?
- Reusable metabox backend and frontend
- Get the link of the first post of a custom taxonomy in a custom taxonomy list
- Get custom term meta problem on single post type
- Commas not displaying in implode
- How can I get 3 different taxonomy type terms in a div class element?
- Get terms for a specfic post from multiple taxonomies in custom post type
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- Should i use custom post type for a custom footer?
- Writing a custom Glossary plugin
- How do I ensure that post_type and Taxonomy use the same slug?
- Custom taxonomy terms as children of multiple custom post types
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- display post count in archive page that have relation with another taxonomy term
- Display Posts that fit a certain criteria on Category pages
- Excluded Custom Taxonomy Term Posts Displaying in loop
- Display Custom Field or Custom Taxonomy in front page /post/product
- Change the term based on the value of a $variable using wp_update_post in submitting a form
- PHP Warning with Custom Fields
- I want to create a metabox under custom taxonomy
- Get all posts for custom taxonomy term
- posts_per_page is not working by term
- Dropwdown: Get taxonomy terms from posts that share preselected terms from 3 other taxonomies
- Add active class to foundation 6 tabs while looping categories
- Saving Child Terms on front end not setting parent
- Filter By Term Not Working – Custom Post Type
- Get posts of an specific term of a custom taxonomy
- Best way to use Category & Custom Fields?
- Fetch posts list from fist CPT taxonomy term and list under 2. CPT
- How to List CPTs Under One Tax Term
- Get a list of categories ids
- custom taxonomies are not showing up in get_taxonomies
- Storing/querying custom date data
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- List custom taxonomy terms
- Custom Post type as Taxonomy
- Display associated taxonomy child name on single CPT page
- Issue On Listing Woocommerce Parent Tag List
- pre_get_posts causes Custom Posts appear under ‘Pages’ menu
- I want to understand plugin implementation of custom posts / taxonomies / metaboxes
- Taxonomy Archive URL + Template