Category: Code

List Categories and Taxonomies in Template.

All regular Post Categories All Terms in Taxonomy

Single Post/CPT Category/Taxonomy Template Tags

Below are functions to display categories or taxonomies attached to a single post or custom post type. Some functions work only on the built in Post ‘category’. Others work on taxonomies which can be attached to the built in Post or a Custom Post Type. Display Single Post’s Categories Display Custom Taxonomies attached to Post […]

Yoast Breadcrumbs for Custom Post Types and Blog Posts

There are a couple tricky settings that affect how Yoast’s breadcrumbs display for Custom Post Types and Blog Posts. It can be a bit frustrating when breadcrumbs are not displaying correctly and you don’t know why. I figured out today, it’s all in the settings. Custom Post Types Breadcrumbs When creating Custom Post Types with […]

Events Calendar tribe_get_events and timezones

Today I spent a frustratingly amount of time trying to list upcoming Events Calendar events on a website, and getting them to stay listed through the start and end time of the event. The reason why events were falling off early is because of the timezone. Events Calendar’s documentation (which I have found to be […]

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 […]

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