XMLRPC won’t connect?

Instead of using XMLRPC which isn’t available on some hosts, use the REST API instead. Send a HTTP POST request to the posts endpoint containing a JSON object with your desired post, with an authentication header. To do this, we’re going to need an authentication plugin ( standard WP only supports nonce + cookie which … Read more

WP Multisite – Additional subdomain on the site for API purposes

I have resovled it myself. I have enabled sunrise in wp-config. Then add a script to sunrise.php to override HTTP_HOST. I made it dynamic since we have many websites. When you visit api.domainxy.com it automatically shows you domainxy.com. <?php $re=”/(?:api\.)(.*)/m”; $str = $_SERVER[‘HTTP_HOST’]; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); if ($matches && $matches[0][1] != “”) { … Read more

Cloudflare and SSL breaks wordpress – Mixed Content & Unable to use Admin

You need to install these two plugins. CloudFlare Flexible SSL – https://wordpress.org/plugins/cloudflare-flexible-ssl/ Really Simple SSL- https://wordpress.org/plugins/really-simple-ssl/ After both the plugins are installed and activated, you will get a message at the top of your dashboard to activate SSL. Click on activate and you are done. You will be logged out. Because your domain has changed … Read more

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