• I need to pass some extra data to Email that CF7 send to my mailbox.
    It’s post_id and company_name (just custom string)

    In case, when CF shortcode used in single.php – no problems, but I have contact form for each post in loop (in archive.php), and in this case post_id always = 0. It’s ok, and I understand why it’s so.

    But I need a way to pass post_id into CF, something like this: [contact-form-7 id="187" title="" post-id="123"]

    I’ve try to create hidden fields in CF7, and using jQuery set value for needed fields by click, it’s working at 80% cases, but sometimes these fields is empty, and I want to conceptually rewrite this, using any other approach.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to pass to CF7 post_id, if shortcode is running in archive’s loop?’ is closed to new replies.