WordPress editor issues
I don’t think clearing cache will solve the problem for your users, because it’s not the server cache but their browsers cache. Ask them to use Ctrl + F5 and it will help to access non-cached version of your website.
I don’t think clearing cache will solve the problem for your users, because it’s not the server cache but their browsers cache. Ask them to use Ctrl + F5 and it will help to access non-cached version of your website.
Event delegation is your friend! This way the element doesn’t have to exist when the code runs to have the function bound to it. jQuery(‘body’).on(‘click’, ‘ul.CodeMirror-hints li’, function(e) { e.preventDefault(); }); replace click with mousedown if you need to
Bold button gets unchecked on enter click when bullet button is also selected in WP Editor
Strange formatting issue in text editor after WP update from 4.9.3 to 5.3.1
Free Alternate WordPress Editor (without requiring plugins)
Displaying content on the website frontend that was uploaded using wp_editor?
It doesn’t look like you’re calling add_action() correctly. It should be more like: add_action( ‘edit_page_form’, ‘wpse96952_editor’ ); function wpse96952_editor() { wp_editor( “Sample”, ‘mycontent’, array( ‘textarea_name’ => ‘mycontent’ ) ); } (content changed to mycontent after I read @vancoder’s comment)
Your product post type should have support for thumbnail. See the codex for more info on supports.
OK, since you save these additional values as Custom Fields (see your code below): function save_points(){ global $post; update_post_meta($post->ID, “category”, $_POST[“category”]); update_post_meta($post->ID, “brand”, $_POST[“brand”]); update_post_meta($post->ID, “features”, $_POST[“features”]); update_post_meta($post->ID, “holds”, $_POST[“holds”]); update_post_meta($post->ID, “extra”, $_POST[“extra”]); } You should use [get_post_meta][1] to get these values.
$editor_id (string) (required) HTML id attribute value for the textarea and TinyMCE. (may only contain lower-case letters) http://codex.wordpress.org/Function_Reference/wp_editor The second parameter passed to wp_editor needs to match the id attribute of the textarea, not the name attribute. Your textarea doesn’t even have and id add one, then use that. <textarea id=”mypostcontent” name=”post_content” rows=”10″