Skip Navigation

[Geschlossen] Contact form 7 and Views

This support ticket is created vor 8 Jahre, 8 Monate. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 -
- - - - - - -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 1 Antwort, has 2 Stimmen.

Last updated by Adriano vor 8 Jahre, 8 Monate.

Assigned support staff: Adriano.

Author
Artikel
#220666

Hello,
I'm trying to generate Contact-form-7 from View template.

I have added following code to function.php to support shortcodes in contact form template

function mycustom_wpcf7_form_elements( $form ) {
	$form = do_shortcode( $form );

	return $form;
}
add_filter( 'wpcf7_form_elements', 'mycustom_wpcf7_form_elements' );

so far include View template to contact form template works, but contact form shortcodes from view template are not processed.

loop code

[types field="something-1"][/types] - nr [number number-1[wpv-post-id]]

result in contact form

something – nr. [number number-149]

Any idea how to make it working?

Thank you!

#220862

Dear Vladimir,

There is a section in Views > Settings called "Third-party shortcode arguments", you should declare all custom shortcodes there. Did you do that?

Das Thema „[Geschlossen] Contact form 7 and Views“ ist für neue Antworten geschlossen.