Front-End Upload media with category

Maybe you can assign attachment to those categories after upload? Check this example. function add_category_automatically($post_ID) { $attach = get_post($post_ID); if ($attach->post_parent) { $cats = get_the_category()($attach->post_parent); foreach ($cats as $cat) { wp_set_object_terms($post_ID, $cat->slug, ‘category’, true); } } } add_action(‘add_attachment’, ‘add_category_automatically’); Source

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

front end add category to new post

It looks like you’re trying to use the default Post post type’s Category taxonomy with your custom post type movies. $post_info = array( ‘post_type’ => ‘movies’, // custom post type here ‘post_status’ => ‘pending’, ‘post_title’ => esc_attr(strip_tags($_POST[‘title’])), ‘post_content’ => esc_attr(strip_tags($_POST[‘overview’])), ‘post_category’ => $category, // categories are by default only for Post post type ); Have … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)