Widgets not showing on sidebars

You’ve registered your sidebars with the ids of sidebar-left and sidebar-right but you are are attempting to display them using only left and right. You need to use the correct ids. That is: dynamic_sidebar( ‘sidebar-left’ ); You need that id with both dynamic_sidebar() and is_active_sidebar() if ( is_active_sidebar( ‘sidebar-left’ ) ) { dynamic_sidebar( ‘sidebar-left’ ); … Read more

How to debug failed changes to posts?

I was finally able to get this to work by using php5-fpm instead of php5-cgi. First I removed the php5-cgi package via sudo apt-get autoremove –purge php5-cgi Then I installed php5-fpm via: sudo apt-get install php5-fpm After tweaking my server definition in Nginx a bit, the problem went away. Update I suspect this had more … Read more

modifying title (in dashboard) for different widget instances

I believe if you add ‘title’ field to the form() (and update()) method this will be displayed in the admin interface. Traditionally this would also be used in the widget() method, but is not required. function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance[‘title’] = strip_tags($new_instance[‘title’]); return $instance; } function form( $instance ) { … Read more

Menu page with three columns

I would avoid any core-related layout classes and just roll your own (you don’t need bootstrap for this). In your PHP page handler, just kick out something like: <div class=”wrap”> <div class=”my-plugin-column”> How… </div> <div class=”my-plugin-column”> you… </div> <div class=”my-plugin-column”> doin’? </div> <!– And so forth –> </div> And then in your plugin CSS: @media … Read more

Dashboard memory overload problem

At the top of your wp-config.php you add define(‘WP_MAX_MEMORY_LIMIT’, ‘256M’); this will work only in back-end and do not increase memory in front-end. If this doesn’t work in your site, you can also add this define(‘WP_MEMORY_LIMIT’, ‘256M’);

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