Category: WordPress tips

mysqli_real_connect() – Access denied for user ‘root’@’localhost’

After migrating a development environment to a new server a problem connecting WordPress to the MySQL database appeared. Using the MySQL root user with no password for a WordPress installation used to be fine: How ever since MySQL 5.7 using the root user with no password seems to be a dealbreaker, resulting in the following…

Displaying posts from all categories on an archive page

In WordPress the “Blog” page is what displays all the posts from different categories. You can only have 1 blog page and it can either be on the front page or some other specified page. It can be configured from WordPress admin dashboard -> Appearance -> Reading -> Your homepage displays -> Posts page. With…

Creating new files in the WordPress theme editor

WordPress theme editor can be used to modify theme files straight from the WordPress admin dashboard. The editor is located under Appearance -> Editor, or in case of multi-site WordPress installation, Themes -> Editor (in the Network admin dashboard). It is most useful for adding snippets of code, action hooks and filters to the child…