Skip to main content

Understanding Available Merge Tags for WordPress

Learn about the various merge tags available in WordPress for dynamic content customization.

Written by Sarita Markande
Updated over a year ago

Latest Post Published in a Public Space Channel

Tag

Description

{{ latest_post.id }}

Identifier of the latest post (use in URL for direct navigation)

{{ latest_post.heading }}

Heading of the latest post

{{ latest_post.description }}

Description of the latest post

{{ latest_post.post_type }}

Type of post

{{ latest_post.channel }}

Name of the channel in which the post was posted

{{ latest_post.channel_slug }}

Slug of the channel in which the post was posted

{{ latest_post.space }}

Name of the space in which the post was posted

{{ latest_post.space_slug }}

Slug of the space (use in URL for direct navigation)

{{ latest_post.created_by.name }}

Name of the author of the post

{{ latest_post.created_by.present_picture }}

Current picture of the post's author

Next Three Upcoming Events

Note: Replace "<i>" with 0, 1, or 2 to reference the respective upcoming event.

Tag

Description

{{ upcoming_events.<i>.id }}

Identifier of the upcoming event

{{ upcoming_events.<i>.name }}

Name of the upcoming event

{{ upcoming_events.<i>.description }}

Description of the upcoming event

{{ upcoming_events.<i>.slug }}

Slug of the upcoming event (can be used in URL to navigate to the event directly)

{{ upcoming_events.<i>.venue }}

Venue of the upcoming event

{{ upcoming_events.<i>.start_datetime|date:"D, d M Y" }}

Start date-time of the upcoming event

{{ upcoming_events.<i>.end_datetime|date:"D, d M Y" }}

End date-time of the upcoming event

{{ upcoming_events.<i>.timezone }}

Timezone of the upcoming event

Details of the Logged-In User

Tag

Description

{{ user.is_authenticated }}

Indicates if the user is authenticated

{{ user.profile.first_name }}

First name of the user

{{ user.profile.middle_name }}

Middle name of the user

{{ user.profile.last_name }}

Last name of the user

{{ user.profile.maiden_name }}

Maiden name of the user

{{ user.profile.nickname }}

Nickname of the user

{{ user.profile.full_name }}

Full name of the user

{{ user.profile.email }}

Primary email of the user

{{ user.profile.prefix }}

Title/salutation of the user

{{ user.profile.suffix }}

Suffix of the user

{{ user.profile.class_year }}

Class year of the user

{{ user.profile.get_present_picture }}

Present picture of the user

{{ user.profile.introduction }}

Short bio of the user

{{ user.profile.membership_type }}

Membership type of the user

Useful Snippets for Navigation

  • Login/Logout Toggle

    • URL: /login-logout

    • Label:

      {% if not user.is_authenticated %} Login {% else %} Logout {% endif %}
  • Admin Dashboard/Profile Toggle

    • URL: /admin-profile

    • Label:

      {% if user.is_any_admin %} Admin Dashboard {% else %} Profile {% endif %}

Please write to us using the Intercom Chat Bubble💬 if you have any queries or concerns😄.

Did this answer your question?