Change default uploads folder in WordPress

To change the default folder where uploads are stored on your webserver when using WordPress as your CMS, open wp-config.php and add the following line of code: In this case, the folder where uploads are stored is called ‘uploads’ and can be found at example.org/uploads/ and are then, based on your settings, saved in a … 

 

Repair a broken WordPress database

If you WordPress blog MySQL database is broken, maybe as a result of manual tweaking, and you get errors, you can let WordPress fix your broken database all by itself. To do so, open wp-config.php and add the following line at the end of that file: This will ‘allow’ your WordPress installation to perform a … 

 

WordPress text widget missing after site move

I moved a WordPress database over to a new home and apparently, all of my text widgets where missing. This might also happen when you try to edit your WordPress database in PHPMyAdmin (for example, you tried to manually edit a text widget in your database instead of the UI). To fix this, go to … 

 

Add a custom logo to WordPress’ wp-admin login page

The default image you find when you go to example.org/wp-admin is the WordPress logo. To change this is an image of your choice, let’s say the logo of your company, simply add the following code to your functions.php file which can be found in the wp-content/themes/your-theme directory. Of course, make sure that the /wp-admin/images/wordpress-logo.png file … 

 

Dynamic HTML5 meta tags for WordPress header.php file

WordPress dynamically generates the title of your pages, as well as other meta tags which are then displayed to your users as well as search engines. The number of meta tags is, however, limited. To add additional social meta tags to the default HTML5 page, such as Facebook’s Open Graph so search engines can better understand …