Parameter - Dynamic Shortcodes
Updated over a week ago

The Parameter Dynamic Shortcode allows accessing GET and POST parameters.


Get a GET parameter

To get a GET parameter, use:


This will output the value of the myparam GET parameter.

For example, if the URL is, then {param-get:myparam} will output hello.

Get a POST parameter

Attention to the Distinction Between HTTP POST Parameters and WordPress Posts

It is crucial to understand that HTTP POST parameters used in web requests are entirely different from WordPress posts.

  • HTTP POST Parameters: These are used in HTTP requests to transmit data from a client to a server. They are an essential part of communication between the frontend and backend in web applications. Data sent via POST parameters are invisible to the user and do not appear in the URL, providing a level of security for sensitive data.

  • WordPress Posts: These refer to the content published on a WordPress site, such as blog articles, pages, etc. They are visible to the site's users and are intended to provide information or entertainment.

To get a POST parameter, use:


This will output the value of the myparam POST parameter.

For example, if a form is submitted with a myparam field, {param-post:myparam} will output the value of that field.


There is no need to sanitise the data as this is already done by Dynamic Shortcodes.

Did this answer your question?