Blog

Setting up Google Cloud Platform Account for Maps

Every site that embeds Google Maps through Google’s Maps APIs is now required to be associated with a Billing account. The Billing account is set up in Google’s Cloud Platform. Every account receives $200 in free credits per month. For most sites, the $200 credit covers the costs associated with Maps. For details on how […]

WordPress’ Privacy Policy Guide

WordPress 4.9.6 included the following Privacy Policy Guide. It is a bit buried in the admin though (/wp-admin/tools.php?wp-privacy-policy-guide) so I copied it here for clients to view.  It is intended to help create a Privacy Policy that complies with the new GDPR. Below is copied from WordPress’ Privacy Policy Guide (updated on 4/17/2019). Under each […]

Remove Post Tags from WordPress Admin

Remove from Posts sub menu in left side WordPress Admin Menu: Remove Tags column from List of Posts in Admin: Remove Tags Side Box when editing/creating post:

Single Post Template Functions

Prints date even if on second post on same day. $post_id is optional if inside of posts loop. See Formatting_Date_and_Time for $format value. Does not print date if displaying second post on same day in loop, or second time used on single post. (For example, if you use this function to display the time and also […]

Retrieve Pages by Path or Template in WordPress

By Template: Check if got anything and use it from query above: By Path:

WordPress Menu Functions

Returns an array of menu items. $menu parameter is slug or id of Menu created in WordPress. $args is from here: get_posts, which isn’t very helpful for filtering what menu items you want to display.  This function returns an array that you can display manually, but does not include any data about which menu item […]

Category Template Tags

The following functions can be used on the category.php template to display information about the current category. Display Current Category Title on category.php: Display Current Category Description: Get Current Category Object: Use Category Object returned above to get ACF fields on category: Display Category Link – works for custom taxonomies and post categories.

Handy WordPress Functions

A collection of WordPress functions I use often. Link to Home: Include another php file: *File name separated on ‘-‘ between two inputs to function. So if named include-content-blocks.php call is: Custom field images (not featured): Get image values in array instead of outputting image: Retrieving featured images is a different function: Get Image Caption […]

Do NOT follow this link or you will be banned from the site!