How to Implement Custom Taxonomy Conditional Page?

For custom taxonomy template you can create a php file in your child theme with name “taxonomy-[taxname].php for example taxonomy-laptops.php. This template will be use for any post type that contains taxonomy laptops. In taxonomy-laptops.php you could use a condtional like if post type is laptops then do something else something else. I hope this … Read more

Change custom post taxonomy values from front-end

That would be achieved using the wp_set_post_terms function. https://codex.wordpress.org/Function_Reference/wp_set_post_terms You could run an ajax request on the change event of the dropdown to either wp-admin/admin-ajax.php or a custom JSON API endpoint (preferred but more work) with a payload like this { new_status: 123 post_id: 321 } Ensure 100% that the user that is logged in … Read more

Create new Taxonomy, add extra fields, register terms AND extra fields values?

In your cases “wp_insert_term” does not save extra custom fields. Please try with below code : foreach ( $this->terms as $term_key=>$term) { // insert new terms in taxonomy wp_insert_term( $term[‘name’], $this->taxonomy, array( ‘slug’ => $term[‘slug’], ‘description’ => $term[‘description’] ) ); update_option( ‘term_team_code_’ . $term[‘slug’], $term[‘code’] ); update_option( ‘term_team_nba_id_’ . $term[‘slug’], $term[‘nba-id’] ); update_option( ‘term_team_espn_id_’ . … Read more