Home › Forums › ART WordPress Theme › CF7 transmission of Post Title
- This topic has 9 replies, 2 voices, and was last updated 3 years, 12 months ago by
SeaTheme.
-
AuthorPosts
-
June 6, 2022 at 4:31 pm #27653
I’m using a cf7 form to send requests from detail views of the posts. Unfortunately the variable [_post_title] remains empty, [_url] is being filled.
Can you tell me why _post_title remains empty, please? Would you fix that in a future update?
Thank you.
June 7, 2022 at 8:18 am #27669Hi,
Please make a test, move the contact form 7 shortcodes from BM content builder to the WordPress default block editor(a shortcodes block), check if it works.
Regards!
SeaTheme – FAQs – WordPress Customization – FacebookJune 7, 2022 at 12:13 pm #27678It works fine outside the modal. Any suggestion beside writing to the author of that plugin?
Thanks!
June 7, 2022 at 1:06 pm #27681The
post-*shortcode should work with the default editor. If the contact form displays under the content of BM content builder. You can add contact form by the default editor.And paste the custom CSS code to “Appearance > Customize: Additional CSS”:
.entry { display: flex; flex-direction: column; } .bm-builder { order: -1; }
Regards!
SeaTheme – FAQs – WordPress Customization – FacebookJune 7, 2022 at 1:12 pm #27683Sorry, it’s not about the shortcode. It’s about the missing output of the variable _page_title in the mail sent with cf7.

Without popup it show in the sent mail:

and in the popup it’s missing:

Any idea?
June 7, 2022 at 2:25 pm #27686Hi,
Yes, I understood your question.
The thing is that it cannot get post-title if the contact form is out of WP default editor.
So the contact form has to be placed into WP default editor, it could be placed before or under other content of BM content.
The WP editor content will display before BM content by default.
Add the custom CSS, it will display after BM content:.entry { display: flex; flex-direction: column; } .bm-builder { order: -1; }If the form positions are not your design, please leave your page URL, I need to check where do you put the contact form and check if there is other solution.
Regards!
SeaTheme – FAQs – WordPress Customization – FacebookJune 7, 2022 at 5:57 pm #27693Thank you for the reply. Still I wonder why post-title needs the WP default editor while url can be output just fine. Currently, the form is triggered by a button placed with BM. The content of the form is managed in the popup plugin:

I wonder if any other solution comes to you mind to get post-title in the contact mail.
June 8, 2022 at 1:01 am #27695Hi,
I think it should be caused by this reason on plugin page:[_post_*] tags work only when the contact form is placed inside post content
Please leave your page URL, I need to know your page layout(where do you put the contact form,and how to be triggered). I will check if there is alternative solution.
Regards!
SeaTheme – FAQs – WordPress Customization – FacebookJune 8, 2022 at 12:49 pm #27702This reply has been marked as private.June 8, 2022 at 3:18 pm #27708Welcome.
I checked your pages. Yes, the form is in a modal and it is out of post contend area. The CF7 cannot get the post-title.
Regards!
SeaTheme – FAQs – WordPress Customization – Facebook -
AuthorPosts
- You must be logged in to reply to this topic.
