Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Special Mail Tags

    Use [_post_title] in your mail.

    Thread Starter astrasuite

    (@astrasuite)

    Arigato, Takayuki-san …

    That helps a lot, thanks for the link.

    It does not work when the contact form is under widgets, but works fine when within the post (or probably a page). When contact form is a widget, the result for example shows as “[_post_url]”, literally, not the actual URL.

    It’s fine, I just moved the contact form to a location within the post. Of course, it would be nice if it works too when cf7 is a widget, for other purposes.

    Thanks

    I have almost the same problem. I have several products on the same page. Each product has a form.

    Is it possible to add something to the
    [contact-form-7 id = “27” title = “Product-form”] like
    [contact-form-7 id = “27” title = “Product-form” mailtag = “Product 1456 “].
    And that I can use it in an email with the tag [mailtag]

    Thanks

    Could some please tell me where exactly in the settings do I add this
    [_post_url] in order for the url of the post where the contact form was sent from to be sent to me?

    I did not see that this issue was marked resolved so I start a new thread instead.

    New post: Can you add a variable to the short code?

    Could some please tell me where exactly in the settings do I add this
    [_post_url] in order for the url of the post where the contact form was sent from to be sent to me?

    I suppose you put it in the message field. Go to wpcf7 settings (Contact).

    Tried that and I just get the [_post_url] literally showing like that not the actual url that its submitted from.

    Thread Starter astrasuite

    (@astrasuite)

    put it in the message body, under Contact settings:

    Here is an example, mine, last 2 lines:

    From: [text-60] <[email-562]>
    Subject: [text-70]

    Message Body:
    [your-message]


    This mail is sent via contact form on Astra Suite News https://www.astrasuite.com/astrablog
    [_post_title]
    [_post_url]

    This only works when contact form is in a post or page. If it is a widget in a sidebar, it will just return what DateTec got.

    Thanks, but thats how I had it set but its not getting me the actual url.

    Its not in a widget in a sidebar as no widgets are set at all.

    I am adding the shortcode through an admin setting in the theme options so it appears in every “property listing”
    It seems too be calling it on here single-listing.php with this code
    <?php echo do_shortcode($agentcontactform); ?>

    So I am guessing its not a widget.

    Thread Starter astrasuite

    (@astrasuite)

    Well, I don’t know about the theme options.

    Try putting the shortcode on a post or page i.e. type it there, outside whatever theme admin setting. That’s how I do it, so you seem to be doing it differently.

    If it works, then go ask your theme designer why it doesn’t work in their theme admin settings.

    It works fine that way, I have asked theme designer. Many thanks for your assistence.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: Contact Form 7] Pass value to subject ?’ is closed to new replies.