Learn how to get the URL of current page with php. Understand the differences between $_SERVER[“SERVER_NAME”] and $_SERVER[“REQUEST_URI”]
The WordPress media uploader is a great tool that allows you to easily include images, videos, documents, and audio on your site. One of the security features associated with the WordPress media uploader is that you are only allowed to upload specific file types. This WordPress Add Allowed File Types tutorial will show you how you can include additional filetypes in your list of allowed uploadable files.
Here is a quick snippet you can use to programmatically add a class to the body element in WordPress.
When you are using a print_r in php, it’s a very good idea to remember the print_r pre combo (ie wrap the print_r in a pre tag). The difference being that using pre will allow you to understand the output as it will be preformatted in a way that is easy for humans to see…