Restoring WordPress posts from database only

Re-install a new copy of wordpress and then put in the credentials to your database in the new install. If you install wordpress and try to load the domain with no database attached, it will start the site creation wizard. Just enter the correct database credentials (username, database name, password, and location) and it will … Read more

How do you seamlessly switch hosting?

Put old host in read-only mode Go to WP Admin -> Settings -> Discussion and check “Users must be registered and logged in to comment” Disable authentication: Create a PHP file inside the wp-content/mu-plugins folder, with the following content: <?php function wp_get_current_user() { return new WP_User(-1); } This will prevent all logged-in users from leaving … Read more

What is the best php version to use with WordPress?

There isn’t (and shouldn’t) be an answer with any specific version for this. New versions come out, old versions get discontinued. At the minimum you should use supported version of PHP. This ensures it still receives bug fixes and (or for less recent version) security updates. Preferably you should be use the latest stable version … Read more

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