Categories
PHP WordPress

Remove comments menu from WordPress admin

Categories
PHP WordPress

Hide WordPress admin bar

Add following snippet to your themes functions.php
add_filter('show_admin_bar', '__return_false');

Categories
PHP WordPress

Using WordPress Transients API to cache expensive requests

Categories
PHP WordPress

Creating custom WordPress shortcode

Categories
PHP WordPress

Populate Gravity Forms checkboxes dynamically

Categories
PHP WordPress

Add custom page to Yoast SEO breadcrumb

Categories
PHP

Replace content from OpenCart 1.x template with vQmod

Categories
PHP WordPress

Get human readable time difference in WordPress

Display posts dates as 2 days ago instead of regular date.

Documentation

Categories
PHP WordPress

Save WP_Query results to a variable

$the_query = new WP_Query( array(...) );
$posts = $the_query->get_posts();

Categories
PHP WordPress

Order WordPress posts by multiple keys

In WordPress 4.0+ WP_Query argument orderby accepts arrays, so posts can be ordered by multiple keys and orders.
In example