If your PHP script is running on Pantheon hosting , you might be noticed that PHP rename function is not working. In PHP rename function is used to rename a […]
You can delete a directory using rmdir() function. But rmdir function has limitation. To remove a directory using rmdir , the directory must be blank. If a directory contains multiple […]
We know how to access PHP array items. If we know the number of keys and name of keys we can set a value to a multidimensional array item.For example […]
You must know the use of WordPress custom field (also known as Post Meta). You might see that if you have many custom fields in your WP then you don’t […]
A very easy way to publish your WordPress post just right now but post date will be a future time. Display future scheduled post to visitors. Here I will show you a very simple trick to do this. Just copy my simple PHP code snippet into your theme functions.php
Change your WordPress default media upload directory to new location. Store your media files in new location instead of wp-content/uploads . WordPress Media Library will access media files form your new directory. Here I am showing your how to do that.