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 […]
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:
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 […]
By Template: Check if got anything and use it from query above: By Path:
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 […]
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.
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 […]