Using the code below, I can very easily get the visual editor to appear on the front end of my theme, displaying the existing content ready to edit. (I love this!)
<?php $post = get_post($post_id, 'OBJECT'); wp_editor(esc_html($post->post_content), 'textarea01'); ?>
The problem is that I cannot get an Update button to appear in order to submit the changes to the database and actually implement the changes made in the editor.
I tried adding a submit button using a standard form input and then using submit_button() but this didn’t work, resulting in an error on the page.
Please could someone help me with this? It seems like such an awesome feature to have!!!
- The topic ‘Update button for wp_editor on theme front end’ is closed to new replies.