Developer shortcodes

We also have a couple of shortcodes available for devlopers.

State specific content

Shortcode: [state] User login state specific content here[/state]

Enables the creation of content targeted at guest/logged in users.

Optional Parameters
  • type ( default: guest )
    The type of state the content is displayed for
    Possible Values:
    • guest - This type shows the content for only non-logged in users
    • loggedin - This type will show the content for only logged in users

Including php files in posts and pages

Shortcode: [include]

Allows you to include the contents of files

Required Parameters
  • file ( default: none )
    The file to include, relative to the theme folder