Find source of notice / warning / errors efficiently

While debugging plugins or themes I will often come across a notice / warning / error which doesn’t really provide useful debugging info. Notice: get_current_site_name is deprecated since version 3.9.0! Use get_current_site() instead. in /wp-includes/functions.php on line 3835 I understand there is a reference to get_current_site_name somewhere that needs to be changed, but there are … Read more

Widgets not expanding on wordpress 3.3 widget dashbord

I updated to WordPress 3.3 (manual update) and cleaned browser cache. Widgets dashbord stop working when tring to expand dynamic sidebars for custom theme when it works for previous wordpress 3.2 installation (using register sidebar on functions.php) I have tried to install Hotfix 0.8 exension and now it works for twentyten theme but not for … Read more

Why is save_post hook not running?

I am trying to save my meta box, I have something like function xxx_meta_box_callback() { add_meta_box(‘xxx-meta’, ‘xxx Details’, ‘xxx_meta_box’, ‘xxx-post-type’, ‘side’, ‘default’); add_action(‘save_post’, ‘xxx_save_meta_box’); error_log(‘meta box cb’); } function xxx_save_meta_box($post_id, $post) { error_log(‘running …’); die(‘OK!!!’); } I am getting “meta box cb” ok in my error log, but xxx_save_meta_box() does not seem to run. Why … Read more

W3 Total Cache active but not working [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 7 years ago. Improve this question Update: Found the reason for the issue. The theme had this add_action(‘init’,’ezgz_buffer’); function ezgz_buffer() { ob_start(‘ob_gzhandler’); } The above code enables … Read more

get_template_directory_uri() and other URL tags not working in theme

So, I’m trying to add get_template_directory_uri or bloginfo() to my header.php file to create relative paths for the CSS and JS files in the theme. E.g., <link rel=”stylesheet” href=”https://wordpress.stackexchange.com/questions/46261/<?php echo get_template_directory_uri(); ?>/css/style.css”> In theory this should show <link rel=”stylesheet” href=”http://mysite.com/wp-content/themes/myTheme/css/style.css”> Problem is, when I view the <head> tag in source all I see is: <link … Read more

Plugin screenshots not showing in the repository

I’m having major trouble getting the screenshots to show in my plugin. I have validated the readme file and placed the screenshots in both the /trunk and /tags/1.0 directories (1.0 is stable). I have looked at many search results and quite a few existing plugins to see what I’m doing different but I’m failing to … Read more