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–10 of 10 snippets “lists”

  • 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

    Attached Files List Shortcode

    Adds an [attached_files] shortcode that lists every PDF, document or other file uploaded to the current post as download links with file type and size, ideal for resources and meeting minutes.

  • PHP Content

    Child Pages List Shortcode

    Adds a [child_pages] shortcode that lists the subpages of the current page, so section landing pages always link to everything below them.

  • PHP Content

    Limit the Number of Tags per Post

    Keeps only the first few tags on each post when it is saved, so tag lists stay focused and tag archives do not fill with one-off tags. Writers see a note when extra tags are dropped.

  • PHP Content

    Random Posts Shortcode

    Adds a [random_posts] shortcode that lists a few random posts, optionally from chosen categories or another post type, without running a slow random database query on every page view.

  • 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.

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.