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

How to display all terms from all taxonomies in post, but separately for each taxonomy?

You can get the taxonomies that are registered for a post type with get_object_taxonomies(). If you pass the post object directly, you don’t even need to explicitly name the post type either. You can then loop through the result of that function to achieve the result you want: $taxonomies = get_object_taxonomies( $post ); foreach ( … Read more

Replace admin edit.php content for CPT

I found a way to add html above the post type table which is generated by WP. add_filter( ‘views_edit-my_cpt’, “custom_list_table”); function custom_list_table( $views ) { /* Print form */ ?> <form method=”post” action=”//your.url/?action=action”> <? wp_nonce_field( ‘action-form’, ‘action_nonce’ ); ?> <label for=”field1″><? _e(‘your label’) ?></label><br /> <input id=”field1″ type=”text” name=”field1″><input type=”submit” name=”submit” id=”submitbtn” class=”button button-primary” value=”<? … Read more

How to display singular_name of custom taxonomy?

As far as I’m aware, your question has been answered here. You’re getting the singular_name correctly, all you need to do is echo it. <?php $taxonomies = get_object_taxonomies( $post ); foreach ( $taxonomies as $taxonomy ) { $term_name = $taxonomy->labels->singular_name; echo $term_name; the_terms( $post->ID, $taxonomy, ‘<span class=”e-article__category__item”><strong>’ . $term_name . ‘: </strong> ‘, “, “, … Read more