Halloween Sale 15% off Ends in See the plans

Snippet Library

Content snippets for WordPress

Snippets that add to or change your posts and pages: reading time, author boxes, “last updated” notes, content after the post or after a paragraph, and excerpt tweaks. For bloggers, publishers and anyone who wants richer posts without editing theme files.

1–17 of 17 snippets “date”

  • PHP Content

    "Add to Queue" Scheduling for Drafts

    Adds an "Add to queue" link under drafts in the Posts list that schedules the post into the next free publishing slot, such as weekdays at 9:00, without picking dates by hand.

  • PHP Content

    "On This Day" Posts Shortcode

    Adds an [on_this_day] shortcode that lists posts published on today's date in previous years, a simple way to resurface archive content on the homepage or in a sidebar.

  • PHP Content

    "Years Since" Shortcode

    Adds a [years_since] shortcode that prints how many full years have passed since a date, such as years in business, years of experience or a person's age, so the number never goes out of date.

  • PHP Content

    Countdown Timer Shortcode

    Adds a [countdown] shortcode that shows a live days, hours, minutes and seconds countdown to a date, with a message once the time is up.

  • PHP Content

    Current Year

    Outputs the current year. Insert it with the snippet shortcode anywhere you need a year that updates itself, such as a footer notice.

  • PHP Content

    Editorial Calendar Screen

    Adds a Posts > Calendar screen showing a month grid of published, scheduled and draft posts on their dates, with links to edit each one and arrows to move between months.

  • PHP Content

    Formatted Date Shortcode With Offsets

    Adds a [show_date] shortcode that prints today's date, or a date relative to it such as "+3 days" or "next friday", in any format, for delivery promises, deadlines and offer end dates.

  • PHP Content

    Notice on Old Posts

    Warns readers at the top of posts older than a set number of years that the information may be out of date.

  • PHP Content

    Recent Posts Shortcode

    Adds a [recent_posts] shortcode that lists your latest posts anywhere, optionally from one category and with dates.

  • PHP Content

    Recently Updated Posts Shortcode

    Adds a [recently_updated] shortcode that lists the posts most recently revised, with the date they were updated, to show readers that older guides are being kept fresh.

  • PHP Content

    Show Content Between Two Dates

    Adds a [scheduled] shortcode that shows the text inside it only from a start date, until an end date, or between both. Ideal for limited offers and event notices.

Have a snippet worth sharing?

Publish it to the library from WPIDE or right here. Sign in with any WordPress site that runs WPIDE, free or Pro. Public snippets are reviewed by the WPIDE team before they appear.