Absolute paths in backend for plugins after moving wordpress

Perhaps the error was the trailing slash at end of my string (www.domain.com/new-name), because in the content I had links such as www.domain.com/old-namewpcontent/uploads/2013/05/image.gif. Undo the changes didn’t worked. I tried to install a fresh copy of WordPress in the new folder and take over all files, theme and database tables. This didn’t worked. Somehow I … Read more

Example for use tinymce in wordpress 3.5.1?

Use wp_editor(). There are many configuration options; you have to read the source to get all of them. Example: $editor_settings = array ( ‘textarea_rows’ => 15, ‘media_buttons’ => FALSE, ‘teeny’ => TRUE, ‘tinymce’ => TRUE, ‘dfw’ => FALSE, ); $content = $get_option( ‘your_option_name’ ); wp_editor( $content, ‘your_editor_id’, $editor_settings );

Remove updates text on plugin or themes list page

Add define(‘DISALLOW_FILE_MODS’,true); to your wp-config.php file. This will block users being able to use the plugin and theme installation/update functionality from the WordPress admin area. Setting this constant also disables the Plugin and Theme editor (i.e. you don’t need to set DISALLOW_FILE_MODS and DISALLOW_FILE_EDIT, as on it’s own DISALLOW_FILE_MODS will have the same effect). http://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants … Read more

Separate jQuery for Individual Comments?

Replace your jquery with this <script type=”text/javascript”> (function($){ $(document).ready(function() { var $option = $(‘.option’); var $fruit = $(‘.fruit-name’); var $last; var parent $option.click(function() { parent=$(this).parents(‘.comment-form-rating’); $(‘.fruit-name’,parent).val(this.innerHTML) }) }); })(jQuery); </script> your script not working because .fruit-name not contain correct reference variable. Updated for debugging put code and check. <script type=”text/javascript”> (function($){ $(document).ready(function() { var $option … Read more

Add background image/layout for single page?

This assumes that you want to add a background image for a specific page: Create your CSS class for the background you want. body.custombg {background: url(“images/background.gif”); } In the header, you can use something like this to check for a specific page. <body <?php if(is_page(123)) echo ‘class=”custombg”‘ ?>> See Conditional Tags for more ideas of … Read more