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.

Filter the "embed Post/Page title" variable

  1. sbruner
    Member

    Can you please provide an example code snippet for filtering the post/page title variable?

    Posted 13 years ago on Tuesday March 1, 2011 | Permalink
  2. I'm not 100% sure what you are trying to do as far as filtering the post/page title variable? The variable is pre-defined and simply outputs the Post/Page Title. If you want to manipulate the post/page title and use it somewhere you would have to write custom code to do so and populate that value where you want to put it. The form field variables themselves don't have filters.

    Posted 13 years ago on Tuesday March 1, 2011 | Permalink
  3. sbruner
    Member

    Sorry, I didn't explain it well.

    How can I add some custom dynamic data to email notifications? (I was thinking of just filtering the Post title variable)

    Posted 13 years ago on Tuesday March 1, 2011 | Permalink
  4. What kind of data are you looking at adding to the email notifications?

    By default it accepts HTML and text you enter in the Notification Message Body and then it also utilized the merge codes for the form data via the Insert form field variable drop down.

    Gravity Forms v1.5 supports shortcodes within the email notification message body. So if you try the development release of v1.5 what you could do is create your own custom shortcode that outputs whatever dynamic data you want to display and then have that shortcode output it and use that shortcode in your notification.

    v1.5 is a development release available on the Downloads page.

    Posted 13 years ago on Tuesday March 1, 2011 | Permalink