Two live WP websites – how to sync?

You have basically tree ways. WP API (JSON) Feed (XML) XMLRPC API I think the first solution via WP JSON API should be your prioritized way. The WP API will implement inside the core of WordPress in the next releases. Currently you can use it via plugin. I think, this is the standard for the … Read more

Editing post and page responding 503 Service Unavailable

Your scripts might be stuck in infinite loop, not producing a fatal error but causing the server to timeout the request after some time. Try installing xdebug for your OS/distribution (php-xdebug in recent Ubuntu versions) which will enforce a xdebug.max_nesting_level directive that should log an actual error and a call stack to help you identify … Read more

Changing the server path

WordPress doesn’t rely on server path, it relies on the URI. When the WordPress code is loaded, it will define the proper paths itself dynamically by using PHP constants like __FILE__, such as ABSPATH which is the absolute path to the WordPress’s installation. So, as long as your domain remains the same, you should not … Read more

Running CRON on Server with WP Function

We need to include wp-load.php in order to bootstrap WordPress in our custom PHP code. So, the modified code would look something like this… include ‘/path/to/wp-load.php’; //RemoteCoins() and LoadRemoteCoins() that include wp functions like wp_remote_get() function runthe_func() { //some code here } runthe_func(); Now, if we run this file on server cron, it wouldn’t throw … Read more

Corrupt .htaccess file

You appear to be denying access to PHP files, which would explain why you are denied access to PHP files: <FilesMatch “.(py|exe|php)$”> Order allow,deny Deny from all </FilesMatch> What is the purpose of this?

How to Better Control WordPress Cron Jobs?

To disable WordPress Cron Jobs, place this in wp-config.php: define(‘DISABLE_WP_CRON’, true); To schedule a cron job in Linux with cPanel for example… This is the command you might run: wget -q -O – http://www.your-domain.org/wp-cron.php?doing_wp_cron >/dev/null 2>&1 The end of the above command just suppresses any output. Just pick the interval of your choice for setting … Read more