How to use Virtual Private Server as WordPress Image CDN

It sounds you want to do something similar as described in this article https://surpriseazwebservices.com/serve-images-from-sub-domain-in-wordpress/. You’ll need to define your upload_url_path as your private server and also update the path of your existing images by running the following query in MySQL. UPDATE wp_posts SET post_content = REPLACE (post_content,’http://yoursite.com/wp-content/uploads/’,’http://img.yoursite.com/’); The steps should all be documented in the … Read more

Best way to search and replace within serialized database strings?

It seems WP-CLI is indeed one of the easiest ways to search/replace serialized strings, e.g. for replacing any unwanted instances of staging links: wp search-replace https://staging.example.com https://example.com –all-tables The above command will search the entire WordPress database for the first string, and replace all instances with the second string provided. If you want to test … Read more

WordPress Customise

The interstitial page on that website isn’t part of WordPress. It’s just an external page with some ads and a download link on it. You can easily do this by yourself. Create a php file named download.php on your server and add the following code to it: <html> <head> <meta http-equiv=”refresh” content=”5; url=<?php $_GET[‘url’];?>” /></head> … Read more

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