Snippet Shortcodes
  • Welcome
  • Getting Started
    • Page
    • Quickstart
    • What is the Premium Plugin?
    • Creating your first shortcode
  • Features
    • Overview
      • Auto-insert into Header / Footer
      • Limit to Device Types
    • Your own Shortcodes
    • Ready-made Shortcodes
      • Premium
        • Database values by ID
        • WooCommerce Meta Fields
        • WordPress User fields
      • Core
    • CSV Import
  • Further Info
    • Pricing & getting a license
  • Release notes
  • Contact / Issues
  • Download Links
    • Core plugin
  • Premium Plugin
Powered by GitBook
On this page
Edit on GitHub
  1. Features
  2. Ready-made Shortcodes

Core

PreviousWordPress User fieldsNextCSV Import

Last updated 5 days ago

Below is a collection of ready-made shortcodes that come with the core plugin. are included with the Premium plugin.

Shortcode
Description

[sv slug="todays-date"]

Displays today's date. Default is UK format (DD/MM/YYYY). Format can be changed by adding the parameter format="m/d/Y" onto the shortcode. Format syntax is based on .

[sv slug="user-ip"]

Display the current user's IP address.

[sv slug="user-agent"]

Display the current user's User Agent

[sv slug="site-url"]

The Site address (URL) (set in Settings > General)

[sv slug="site-title"]

Displays the site title.

[sv slug="admin-email"]

Admin email (set in Settings > General)

[sv slug="page-title"]

Displays the page title.

[sv slug="login-page"]

Wordpress login page. Add the parameter "redirect" to specify where the user is taken after a successful login e.g. redirect="http://www.google.co.uk".

[sv slug="privacy-url"]

Displays the privacy page URL.

[sv slug="username"]

Display the logged in username.

[sv slug="user-id"]

Display the current user's ID.

[sv slug="user-email"]

Display the current user's email address.

[sv slug="first-name"]

Display the current user's username.

[sv slug="last-name"]

Display the current user's last name.

[sv slug="display-name"]

For additional ready-made shortcodes, for even more powerful and flexible options.

Additional shortcodes
explore our Premium collection
PHP date