PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Passing parameters to HTML

  1. Trenbania
    Member

    I would like to display two parameters that I'm passing to a form in an HTML block on the form page. Is that possible? Link below shows working example of a URL

    http://kentheritagetrees.btcv.org.uk/get-involved/events/event-booking-form/?event=Underwater%20wonderland&date=4%20August%202011

    Many thanks
    Andy

    Posted 12 years ago on Monday July 11, 2011 | Permalink
  2. Currently HTML blocks are simply HTML so they can't display URL parameters.

    However, the HTML blocks do support shortcodes, so you may be able to find a plugin that adds a shortcode that can display URL parameters and then use that shortcode in the HTML block. Doing a quick search I came across this plugin:

    http://wordpress.org/extend/plugins/url-params/

    Posted 12 years ago on Monday July 11, 2011 | Permalink
  3. Trenbania
    Member

    Thanks Carl - that does just about what I wanted!

    Posted 12 years ago on Monday July 11, 2011 | Permalink

This topic has been resolved and has been closed to new replies.