Extract and echo a URL parameter in WordPress Site using Avada theme
-
On the WordPress site using Avada, I am linking from an email to a specific page displaying products. Right now, an example of the link looks something like this:
http://www.example.com/?firstName=Joe&lastName=Smith&amount=$3,000&coupon=BlackFriday
I would like to extract the parameters from the URL and echo them in different locations on the page. For example, there is a paragraph that might say “Hi $firstName, you have been approved for $amount.” and pre-fill the coupon input field with the Coupon code which will be disabled for user to interact with.
How can I do this in Avada/WordPress?
-
Hello there,
Many thanks for reaching out.
Are you able to confirm the URL of the website that you need assistance with please?
Ultimately, you may need to reach out to Avada support here: https://theme-fusion.com/support/
- The topic ‘Extract and echo a URL parameter in WordPress Site using Avada theme’ is closed to new replies.