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

Can’t delete unwanted favicon

The default favicon location on your server gives a 404: http://www.steve.doig.com.au/favicon.ico Your blogs homepage source-code related to linking to another location is: <link rel=”icon” type=”image/png” href=”http://www.steve.doig.com.au/wordpress/wp-content/themes/grid-focus-public-10/images/favicon.ico”> Note: The file suffix is .ico which normally stands for an Microsoft Icon file. But names are not interesting for that. The type=”image/png” is correct here, it’s a PNG … Read more

WordPress Site front End and Back End Loading Slowly

WordPress is a great platform to develop web solutions. However if you consider following points then it would be much better. Reliable DNS Get your wordpress hosting right and use proper caching(WP Super Cache or W3 Total Cache) A clean theme and don’t pile up with lots of plugins Disable trackbacks and pingbacks Move CSS … Read more

How do I test PHP files in WordPress?

The WordPress Codex documentation on Installing WordPress and Editing Files give you pretty much all information you need. You will need a web server to test the code and changes. So you can either do this on your web server (assuming you have some sort of hosting package, because you mention ‘upload’), or on your … Read more

Can you have multiple wordpress sites under the same domain?

Yes, instead of installing WordPress at root– example.com/— you’d create the “programs”, “sales”, and “learning” directories on the server and install a seperate WordPress instance in each directory. There is nothing special you need to do to make this work. I think you may end up happier if you create a network, though. Multisite, while … Read more

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