Cannot Update A Post, 404 Error
To do so .. You need to login to wordpress admin and then need to save the permalink again.. Just go to Settings >> Permalink And save without doing any changes.. and that error should be gone..
To do so .. You need to login to wordpress admin and then need to save the permalink again.. Just go to Settings >> Permalink And save without doing any changes.. and that error should be gone..
This is kind of a 2-parter. The first half will show you how to change the style inside TinyMCE when editing. The second half will show you how to remove things from the toolbar. Style TinyMCE WordPress give us a neat little function called add_editor_style() which accepts an array of stylesheets, either by URL or … Read more
You’ll need to add support for your theme (if it does not already have it) for editor styles. See this for more information: http://codex.wordpress.org/Function_Reference/add_editor_style Then you’ll just need to create a stylesheet. There are some themes out there that already support editor styles, which might be a good place to start in order to know … Read more
Per the jQuery noConflict Wrappers section of the wp_enqueue_script() Codex page, the $ variable is not available in WordPress. You can replace $ with jQuery in your jQuery code, or do something like this: jQuery(document).ready(function($) { // your code here . . . });
How can I control multiple editing of wordpress posts?
You want to submit the data to admin_post_(action) and then handle the request. You may need jQuery to intercept the click and supply all the required data, but this shows you the main parts. HTML <form action=”http://www.example.com/wp-admin/admin-post.php” method=”post”> <input type=”hidden” name=”action” value=”add_foobar”> <input type=”hidden” name=”data” value=”foobarid”> <input type=”submit” value=”Submit”> </form> PHP add_action( ‘admin_post_foobar’, ‘prefix_admin_foobar’ ); … Read more
Finally got it running with few pieces of extra buttons too :): <?php $tinymce_options = array(‘plugins’ => “table,lists,link,textcolor,hr”, ‘toolbar1’=>”fontsizeselect,forecolor,backcolor,bold,italic,underline,strikethrough,alignleft,aligncenter,alignright,alignjustify”,’toolbar2’=>”blockquote,hr,table,bullist,numlist,undo,redo,link,unlink”); $editor_config= array(‘teeny’=>true, ‘textarea_rows’=>5, ‘editor_class’=>’csec_text’, ‘textarea_name’=>’csec_text’, ‘wpautop’=>false, ‘tinymce’=>$tinymce_options); wp_editor($content, $id, $editor_config); ?> Check: wp_editor in add_meta_boxes does not show gallery for better option working in accordance with WordPress.
Use this one-liner: if(!tinyMCE.activeEditor)jQuery(‘.wp-editor-wrap .switch-tmce’).trigger(‘click’); //Now you can use “tinyMCE.activeEditor” safely console.log(tinyMCE.activeEditor.settings);
$content=””; $editor_id = ‘mycustomeditor’; wp_editor( $content, $editor_id ); /** If you want to get data wp_editor value from POST **/ print_r($_POST[‘mycustomeditor’]);
A while later i decided to try it again… (needed it for a project) this time i went for clean jquery and i got it to work! here it is: the working & easy to use way to count words while they are being written inside a wp_editor both in the html editor and visual … Read more