Is it possible to isolate and use WordPress functions outside of wordpress

One way to access WordPress core functionality outside of your WordPress directory is to use the following example; <?php require( ‘../path-to-your-wordpress-install/wp-load.php’ ); get_header(); // do your magic here… get_footer(); ?> However converting HTML to WordPress shouldn’t really require you to access WordPress outside of itself. Instead you want to be porting across the clients HTML … Read more

Database migration issues – Error #1046 No database selected

99.99% chance that you configure wordpress with wrong database details. make sure you are using correct database details in wp-config.php file /** The name of the database for WordPress */ define(‘DB_NAME’, ‘database_name_here’); /** MySQL database username */ define(‘DB_USER’, ‘username_here’); /** MySQL database password */ define(‘DB_PASSWORD’, ‘password_here’); /** MySQL hostname */ define(‘DB_HOST’, ‘localhost’); some possibilities are … Read more

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