Editor doesn’t load properly on my self-hosted WordPress 3.3

from wordpress.org/forums: WordPress 2.8 includes a concatenation of scripts and CSS. This puts the quality of these scripts at a higher level than before. The temporary solution is to place it in the wp-config.php one of these two values define(‘CONCATENATE_SCRIPTS’, false ); or define(‘SCRIPT_DEBUG’, true); Now this is from over a year ago, worth a … Read more

How to restrict the editors from viewing/editing pages created by admin?

This code will do the job… <?php add_action(‘pre_get_posts’, ‘filter_posts_list’); function filter_posts_list($query) { //$pagenow holds the name of the current page being viewed, we want to run our code only on edit.php (posts list) global $pagenow; //If the ‘Editor’ is logged in, exclude ‘Admin’s posts if(current_user_can(‘editor’) && (‘edit.php’ == $pagenow)) { //global $query’s set() method for … Read more

Support for simultaneous editing

Short answer – no. Long answer – WordPress retrieves and stores info in the database. To pull and push that data live to multiple locations simultaneously would tax the vast majority of users’ servers beyond their capabilities (especially shared hosting). It does let you know when someone else is editing a page or post, but … Read more

Use MarkItUp as editor and not the default

Yes, It is possible … there is a good article on DigWP – which points out one warning that MarkDown is not reversible (ie articles written in Markdown get saved in Markdown so if you ever turn off MarkDown, then you’re left with goo on your screen). There is a MarkitUp plugin on the WordPress.org … Read more

Our shortcode dropdown box in Tinymce is not working in WordPress 3.9?

I’ve been stuggeling with a similar issue. (button not appearing in mce editor toolbar). This pattern worked for me in WP 3.9 / tinymce 4.0: tinymce.PluginManager.add( ‘thing’ , function( editor ){ editor.addButton(‘thing’, { type: ‘listbox’, text: ‘My listbox’, onselect: function(e) { // do things… }, values: [ {text: ‘Menu item 1’, value: ‘Some text 1’}, … Read more

Efficient way to edit WordPress themes

Delete DreamWeaver right now and do the following instead so that you can edit everything locally and see changes in real-time: 1) Install MAMP so you can run a server locally on your computer and then install WordPress as you normally would but in a local computer folder 2) Download SublimeText as your code editor. … Read more

Add table button in editor without Plugin

i use this custom button for ad’s in TinyMCE, i use JavaScript code to add/develop this one look into this code: jQuery(document).ready(function ($) { tinymce.create(‘tinymce.plugins.wpse72394_plugin’, { init: function (ed, url) { // Register command for when button is clicked ed.addCommand(‘wpse72394_insert_shortcode’, function () { selected = tinyMCE.activeEditor.selection.getContent(); if (selected) { //If text is selected when button … Read more

Always paste as a text in visual editor

function tinymce_paste_as_text( $init ) { $init[‘paste_as_text’] = true; return $init; } add_filter(‘tiny_mce_before_init’, ‘tinymce_paste_as_text’); For details please follow link : tiny_mce_before_init Thanks!

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