Shortcodes snippets
Dates, breadcrumbs, buttons, share links and more, anywhere. Free, tested and ready to install in Snipfire in one click.
- 256 snippets
- 29 one-click packs
- Tested with WordPress 7.1 and WooCommerce 11.1
- No account needed
- Breadcrumbs shortcode Type [breadcrumbs] where you want a trail like Home › Recipes › Lemon cake. Works for posts, pages (with parents), categories and search.
- Button shortcode Type [button url="/contact/"]Get in touch[/button] to add a button that looks like your theme’s buttons.
- List of child pages shortcode Type [child_pages] on a page to list the pages under it, with links. Keeps overview pages up to date by themselves.
- Spam-safe email address shortcode Type [email]you@example.com[/email] to show a clickable email address that’s scrambled in the page code, so address-harvesting bots can’t read it.
- Last updated date shortcode Type [last_updated] in a post or page and it shows the date it was last changed, like “Last updated: 12 March 2026”.
- Log in / log out link shortcode Type [login_link] to show “Log in” for visitors and “Log out” for logged-in users, returning them to the same page afterwards.
- Members-only content shortcode Wrap text in [members_only]…[/members_only] and only logged-in users see it. Visitors see a short message with a login link instead.
- Reading time shortcode Type [reading_time] in a post or template to show “4 min read”. [reading_time wpm="180"] changes the reading speed.
- Recent posts shortcode Type [recent_posts] to show a list of your latest posts anywhere. Choose how many and from which category: [recent_posts count="3" category="news"].
- Share links shortcode Type [share_links] to add plain share links for X, Facebook, LinkedIn, WhatsApp and email. No scripts, no tracking, no cookies.
- Today’s date shortcode Type [today] to show today’s date in your site’s date format, or pick your own: [today format="l, j F"].
- Visitor’s first name shortcode Type [first_name] to greet logged-in users by name (“Welcome back, Maria!”). Visitors see nothing, or the fallback you set: [first_name fallback="friend"].
- Current year shortcode Type [year] anywhere, for example “© [year] My Shop” in the footer, and it always shows the current year.
- Years since shortcode Type [years_since year="2008"] and it shows how many years have passed, like “18”. For “In business for [years_since year="2008"] years”, always up to date.
No snippet matches that yet. Tell us what you need and we'll consider adding it. Suggest a snippet
Or install a whole pack
Packs group snippets that belong together. Open one in Snipfire, tick what you want and install: everything arrives switched off, or switched on together after one test load. Snippets that need your details, or that change how the whole site behaves, always stay off until you say so.
- Harden WordPress Close the doors attackers try first: XML-RPC, user name discovery, the file editors, revealing login errors. 7 snippets
- Clean up the head Remove the links, scripts and styles WordPress adds to every page that most sites never use. 7 snippets
- Performance Small changes that save the server and the browser some work. 7 snippets
- Turn off what you don’t use Each of these replaces a small plugin: no comments, classic editor, no feeds, no search and more. 9 snippets
- Admin and login Your branding on the login page, a tidier admin, and handy extras such as duplicating posts. 8 snippets
- Content and media Shortcodes, links, images and small design touches for the public site. 10 snippets
- WooCommerce essentials The small WooCommerce changes shop owners ask for most. 11 snippets
- Greek e-shop For shops in Greece: receipt or invoice with a checked VAT number (ΑΦΜ), Greek phone and postcode checks, a cash on delivery fee, and greeklish addresses. 6 snippets
- Privacy and GDPR Keep less personal data and send less of it to other companies. 4 snippets
- Analytics and pixels The usual tracking codes, ready to paste your ID into. Administrators’ visits aren’t counted. 6 snippets
- Comments Fewer spam comments and more control: close old posts, set minimum and maximum lengths, a spam trap, no links. 13 snippets
- Posts and the editor Make the block editor calmer and give pages excerpts, tags and categories. 14 snippets
- Images and media Sharper, lighter images, tidier uploads and a more useful media library. 11 snippets
- More admin tweaks Useful columns, a tidier admin bar, a welcome box for clients, and fewer menus for editors. 15 snippets
- Users and profiles Registration dates, last logins, social profile fields, longer sessions and stricter passwords. 9 snippets
- Login and security extras Limit login attempts, email-only logins, a registration spam trap and more hardening. 11 snippets
- Email Emails from your name and address, sent through SMTP, and fewer notification emails. 8 snippets
- SEO basics Meta descriptions, social sharing tags, article structured data and cleaner indexing, for sites without an SEO plugin. 11 snippets
- RSS feeds Control what your RSS feed shows, and when. 7 snippets
- Search and archives Better site search and cleaner archive pages. 6 snippets
- Design touches Small front-end touches: a reading progress bar, an announcement bar, a WhatsApp button, accessibility fixes. 11 snippets
- Shortcodes Handy shortcodes for dates, breadcrumbs, buttons, share links, members-only content and more. 12 snippets
- More speed More ways to load less: block styles, speculative loading, fewer scripts. 9 snippets
- Turn off more More features you may not need: sitemaps, trackbacks, automatic updates, pattern suggestions. 11 snippets
- Developer tools Maintenance mode, template names, page stats, environment labels and a WP-Cron viewer. 9 snippets
- WooCommerce: shop and product pages Badges, price display, tabs and layout for your shop and product pages. 22 snippets
- WooCommerce: cart and checkout Free-shipping progress, coupon links, quantity limits and a cleaner checkout. 15 snippets
- WooCommerce: account, emails and admin A leaner My account page, handier order lists and emails, and lighter pages. 9 snippets
- More tracking codes Google Ads, TikTok, LinkedIn, Pinterest, Hotjar, Plausible, site verification and a GA4 purchase event. 8 snippets
Library from Snipfire 0.15.1. Written from scratch for Snipfire, free to use on any site. Which plugins can a snippet replace?
Move your snippets over this afternoon.
Importing changes nothing until you switch over, and your old shortcodes keep working.