December 2013
Delete WordPress old Revisions using SQL Query
DELETE a,b,c FROM wp_posts a LEFT JOIN wp_term_relationships b ON (a.ID = b.object_id) LEFT JOIN wp_postmeta c ON (a.ID = c.post_id) WHERE a.post_type = ‘revision’
Quick way to convert XML to Array in PHP
This is the dirty and fast way to convert XML file to Array. $array = json_decode(json_encode((array)simplexml_load_string($xml)),1);
Remove ver version number for JS and CSS in WordPress
The varnish load so much of different version in my wordpress, so I would like to remove all the ver from the source. 53.76 RxURL /wp-content/themes/responsivepro/core/js/responsive-modernizr.js?ver=2.6.1 51.22 RxURL /wp-content/themes/responsivepro/core/js/responsive-scripts.js?ver=1.2.4 16.12 RxURL /wp-includes/js/jquery/jquery.js?ver=1.10.2 15.70 RxURL /wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1 15.59 RxURL /wp-content/themes/responsivepro/core/css/style.css?ver=1.9.3.4 15.59 RxURL /wp-content/themes/responsivepro/pro/lib/css/style.css?ver=1.0 15.58 RxURL /wp-content/plugins/RadControl/js/adclk.js?ver=2013-06-21 15.56 RxURL /wp-content/themes/responsivepro/style.css?ver=1.9.3.4 15.56 RxURL /wp-content/plugins/jetpack/modules/widgets/wid Solution to solve Add this …
Remove ver version number for JS and CSS in WordPress Read More »
PHP message: PHP Fatal error: Class ‘WP_List_Table’ not found in
PHP message: PHP Fatal error: Class ‘WP_List_Table’ not found in You may see this error in WordPress while disabled some plugin, because they plugin is need to use the WP_List_Table class from the WordPress. Solving the problem Add this to any of your activated plugin the it will load the class if it is not …
PHP message: PHP Fatal error: Class ‘WP_List_Table’ not found in Read More »
SSL read: error:00000000:lib(0):func(0):reason(0), errno 0
SSL read: error:00000000:lib(0):func(0):reason(0), errno 0 Error in WordPress, because of the SSL You may try to upgrade the SSL of your server if not, you can disable the HTTPS in the config file of your wp-config.php Disable HTTPS in WordPress Config add line to your wordpress wp-config.php [php] define( ‘JETPACK_CLIENT__HTTPS’, ‘NEVER’ ); [/php]