Get Page ID or URL From a Slug in WordPress

This is interesting, with years experience working with WordPress, I've never dealt with this kind of issue. I searched the codex, and found get_page_by_path is the ideal solution instead of directly create query…

How to Display and Order Users on a Page

If you have registered users on certain role, to list them on a single page, you can use WP_User_Query Here's the basic loop: $user_query = new WP_User_Query( $args ); if…

Remove Default Button and Form Styling on Safari / iOS

By default, Safari styles any form field on the webpage to use their own settings. Here's a short CSS to remove default style: input[type=text], input[type=button] { -webkit-appearance: none; -webkit-border-radius: 0;…

How to Integrate WordPress With Amazon S3

Amazon S3 is a scalable storage service from Amazon Web Service, I frequently use it for high traffic and heavy image / video sites, more than that, it also simplify the manage and backup process of your site because the “heavy” part of the web are hosted in different place from your server.