[How To] Remove Block Library CSS from WordPress

Gutenberg editor, that is the default editor for latest WordPress installations, uses special CSS libraries to manage blocks on your site’s frontend. If you are using this new WP editor, it will automatically add this library CSS code on your site; <link rel=’stylesheet’ id=’wp-block-library-css’ href=’https://nextseasontv.com/wp-includes/css/dist/block-library/style.min.css’ type=’text/css’ media=’all’ /> But, if you are not using Gutenberg […]

Read more [How To] Remove Block Library CSS from WordPress

MySQL Query to List WordPress Posts Using Meta Query

To get a list of WordPress Posts using meta query in MySQL, you can use the following SQL query: SELECT p.ID, p.post_title, m.meta_id, m.meta_key, m.meta_value FROM `wp_posts` p LEFT JOIN `wp_postmeta` m ON p.ID = m.post_id WHERE m.meta_key = ‘wpcf-show-status’ AND m.meta_value ” ORDER BY p.post_title ASC This query will create a list with ID, […]

Read more MySQL Query to List WordPress Posts Using Meta Query

[How to] Add User to WordPress using SQL INSERT

If you want to add a new user to WordPress database using MySQL using phpMyAdmin or a similar tool, you can use the following snippet: INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES (‘admin’, ‘$P$Bg/Ol6U.M07OGU7sKEZvIyl.mxuQQw.’, ‘admin’, ‘[email protected]’, ”, ‘2018-12-21 16:34:15’, ”, 0, ‘admin’); This will add admin user with password […]

Read more [How to] Add User to WordPress using SQL INSERT

Performance Tip Skip Wordpress 404 Htaccess

[How to] Skip WordPress 404 Handling for Static Files

WordPress uses .htaccess file to handle all requests through the index.php file. This is a great feature because it enables us to use permalinks and all kinds of redirections. But it has one major pitfall. When a missing static file (404 error) is handled by WordPress (like a missing favicon.ico) this will cause your server to […]

Read more [How to] Skip WordPress 404 Handling for Static Files