Documentation

gwp_eeid

The gwp_eeid merge tag enables the retrieval of entry properties using the encrypted entry ID (eeid) URL parameter. This powerful feature allows for secure, dynamic content display based on entry data.

Usage

The basic syntax for the gwp_eeid merge tag is as follows:

{gwp_eeid:property}

Where property is the specific entry property you wish to retrieve, such as id, date_created, or any custom field ID.

Using custom url-parameters

The gwp_eeid merge tag supports other url parameters as well. It is also possible to pass multiple entries to a single page. For example, if you have this url-parameter string: ?eeid=encrypted-entry1&task=encrypted-entry2&entry=encrypted-entry3

You can access field 1 from the task entry (encrypted-entry2) by using:

{gwp_eeid_task:1}

How to pass an entry via the url

Use the gwp_encrypt modifier on an entry id to encrypt it for passing the entry via the url.

Examples

This will output the value of the field with ID 1 for the entry that is passed by the encrypted eeid parameter in the URL:

{gwp_eeid:1}

This will output the value of the field with ID 2 for the entry that is passed by the encrypted task parameter in the URL:

{gwp_eeid_task:2}

This will output the date_created for the entry that is passed by the encrypted eeid parameter in the URL:

{gwp_eeid:date_created}
Advanced Merge Tagsv1.4

To use the functionalities described in this documentation, you'll need to get the GravityWP - Advanced Merge Tags add-on.

Read more