Skip to content

Getting Started

Anne Dorko edited this page Feb 21, 2017 · 2 revisions

Using Of the Day is a cinch! Here’s how it works.

Basic Usage

The default shortcode will call a random regular post and set it as the Post of the Day until midnight according to the local time of your WordPress site.

[oftheday]

Specifying a Post Type

The shortcode accepts type as a parameter. You can use any registered post type on your WordPress site.

[oftheday type='dictionary']

Specifying Taxonomies

The shortcode accepts any registered taxonomy as a parameter. Currently, it only accepts the Name of your taxonomies, so do not use IDs or slugs. Example:

[oftheday category='My Favorite Category']

Combining Parameters

You can mix and match post types and taxonomies, but the provided taxonomy must be registered with the post type you've chosen, otherwise you will see no results.

[oftheday type='dictionary' type='noun']

Clone this wiki locally