Site logo

Archived topic

See the Special Email tags in Contact 7 form

3 replies · Started by Iñaki Mansilla on November 2, 2018

Viewing posts 1–4 of 4

Hi,
I use special Mail tags of the Contact form by Contact form 7, but when I paste the Forms into a Section of the pages I don't see the Special tags. Editing the page without using sections, the special mail tags works correctly.

Now I've installed a modification into the functions.php to get the url of the page where the form are installed creating a special code I saw here: https://tech90.com/2015/08/11/add-referer-url-to-contact-form-7-form-and-email/

I need to get almost the title of the page.

How could I solve it form your side?

Thank you.

Hi there,

I'm not sure I understand.

What kind of special mail tags are you adding? What about them aren't working within Sections?

Hi,
The kind of Special mail tags are:
[_post_id] — This tag is replaced by the ID of the post.

[_post_name] — This tag is replaced by the name (slug) of the post.

[_post_title] — This tag is replaced by the title of the post.

[_post_url] — This tag is replaced by the permalink URL of the post.

I work with the same form on all the pages, then I need to identify almost the page where the form was fill it.

The web site is already done using the sections because is easiest to design it.

Best Regards,

It's likely that they're parsing those shortcodes assuming that they're in the editor content.

Sections use post meta to store the content, so the plugin likely isn't parsing the shortcodes.

It may be worth asking their support team if it's possible to parse them inside post meta. If it is, we should be able to provide some code if they can point us in the right direction.

This archived topic is closed to new replies.