Frontend tagging for both default and custom post type in wordpress

Notice: completely update code after OP update answer. Assuming you want to update in front-end the taxonomy ‘post_tag’ (the standard tags) fro standard post and a taxonomy called ‘research-sections’ for a custom post type called ‘research’. Probably you have to put the form in both single.php and single-research.php and in both you have to some … Read more

wp_editor doesn’t work in front end area

You need to first define the $settings and the $editor_id and the $content variables. Then you can call wp_editor(). Something like this should work for you: // default settings $content=”This content gets loaded first.”; $editor_id = ‘my_frontend_editor’; $settings = array( ‘wpautop’ => true, // use wpautop? ‘media_buttons’ => true, // show insert/upload button(s) ‘textarea_name’ => … Read more

Assign category to front end post

I checked and it works with this: $new_post = array( ‘post_content’ => $_POST[‘post-content’], ‘post_title’ => wp_strip_all_tags( $_POST[‘post-title’] ), ‘post_type’ => ‘custom_pt’ ); note: I used a text input for the single category <input id=”input-name-value” name=”input-name-value” type=”text” /> I havent tried it with a select – option dropdown. or more than 1 category. $post_id = wp_insert_post( … Read more

front end radio custom taxonomy with custom post type

Your code doesn’t show if and how you set $terms other then that its seems ok, just try to wrap it in an array and you should check if its set first, so try this: $new_post = array( ‘post_author’ => $user_id, ‘post_title’ => $post_title, ‘post_content’ => $post_content, ‘post_category’ => array($_POST[‘cat’]), ‘tags_input’ => array($tags), ‘post_type’ => … Read more

Front-End Editor email notification issue

I believe Front End Editor calls wp_update_post, which in turn calls wp_insert_post. You should be able to hook either save_post or wp_insert_post for new/updated posts, and edit_post or post_updated for updated posts.

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