How to use Smart Tags

A Smart Tag refers to a compact snippet of code that, when utilized within our compatible plugins, furnishes you with valuable insights regarding various aspects of your WordPress site.

Identifiable by its curly brackets and the descriptive term(s) enclosed within them, a Smart Tag appears in the following format: {fpf smart_tag}.

The following Smart Tags can be categorized based on the data they represent.

Page Smart Tags

With Page Smart Tags, you can capture various data related to the current page.

{fpf url}

This smart tag provides the complete URL of the current page.

{fpf url.path}

This smart tag provides the base URL of your site.

{fpf url.encoded}

This smart tag provides the current page's URL in an encoded format.

{fpf page.title}

This smart tag provides the current post/page title.

{fpf page.lang}

This smart tag provides the language code for the current site, in the format: "en-US".

{fpf page.langurl}

This smart tag provides the language URL code for the current site, in the format: "en".

{fpf page.browsertitle}

This smart tag provides the current browser title.

{fpf querystring.KEY}

This smart tag provides access to query string that are available in the URL of the page.

For example, let's say the URL is https://example.com/contact?plugin=FireBox and you want to retrieve the value of query string plugin, you'll be able to do so using the querystring Smart Tag: {fpf querystring.plugin}.

Visitor Smart Tags

With Visitor Smart Tags, you can capture various data related to the current visitor.

{fpf ip}

This smart tag provides the IP of the visitor.

{fpf client.device}

This smart tag provides the device (desktop, tablet, mobile) of the visitor.

{fpf client.browser}

This smart tag provides the browser name used by the visitor.

{fpf client.os}

This smart tag provides the operating system name used by the visitor.

{fpf client.useragent}

This smart tag provides the user agent used by the visitor's browser. The user agent is a piece of information about the user's system.

{fpf referrer}

This smart tag provides the referrer URL of the visitor.

Date/Time Smart Tags

With Date/Time Smart Tags, you can capture various data related to the current date and time.

{fpf date}

This smart tag provides the current date and time in the format Y-m-d H:i:s

This Smart Tag supports the following options to customize it further. Let's see them one by one:--format

Use this option to change the format of the date according to the PHP formatting options

Syntax

{date --format=Y-m-d}

{fpf time}

This smart tag provides the current time in the format H:i

{fpf day}

This smart tag provides the current day of the month, without leading zeros.

{fpf month}

This smart tag provides the current month of the year, without leading zeros.

{fpf year}

This smart tag provides the current year.

Site Smart Tags

With Site Smart Tags, you can capture various data related to the site's information.

{fpf site.email}

This smart tag provides the current site email address set under Settings > General.

{fpf site.name}

This smart tag provides the current site name set under Settings > General.

{fpf site.url}

This smart tag provides the current site address URL set under Settings > General.

User Smart Tags

With User Smart Tags, you can capture various data related to the currently logged-in user.

{fpf user.name}

This smart tag provides the name of the logged in user. If the user isn't logged in then this smart tag will return nothing.

{fpf user.firstname}

This smart tag allows you to retrieve a user's first name. If the user isn't logged in then this smart tag will return nothing.

{fpf user.lastname}

This smart tag allows you to retrieve a user's last name. If the user isn't logged in then this smart tag will return nothing.

{fpf user.login}

This smart tag provides the username of the logged in user. If the user isn't logged in then this smart tag will return nothing.

{fpf user.registerdate}

This smart tag provides the registration date of the logged in user. If the user isn't logged in then this smart tag will return nothing.

{fpf user.email}

This smart tag provides the email address of the logged in user. If the user isn't logged in then this smart tag will return nothing.

{fpf user.KEY}

This smart tag allows you to retrieve a user's property value. If the user isn't logged in then this smart tag will return nothing.

Utility Smart Tags

With Utility Smart Tags, you can capture various data related to utility.

{fpf randomid}

This smart tag provides a random hexadecimal number with a length of 8 alphanumeric characters.

Was this helpful?