WP Error using wp_insert_term

Move the $make_new[‘term_id’] inside the block that runs when there is no error. Do you have your WP_DEBUG on? What is the error message?

How to bind each “the_content” elements to a custom variables

As majick suggested on a comment you could use a shortcode to create the accordion markup. If you want to manually define the tab titles and content, you could add something like this to your functions.php. add_shortcode( ‘accordion’, ‘accordion_callback’ ); function accordion_callback( $args, $content ) { $defaults = array( ‘id’ => ‘exampleAccordion’ ); $args = … Read more