Yes i read it, but then i pasty CF7 in PHP by do short code in CF v4.7 all work well.
working code on v4.7
function fix_wpcf7_do_shortcode( $shortcode, $id = NULL ) {
if ( ! isset( $id ) ) {
$id = get_the_ID();
}
$regex_pattern = get_shortcode_regex();
preg_match( ‘/’ . $regex_pattern . ‘/s’, $shortcode, $regex_matches );
$shortcode_atts = shortcode_parse_atts( $regex_matches[3] );
$shortcode_id = $shortcode_atts[‘id’];
return str_replace( ‘wpcf7-f’ . $shortcode_id . ‘-o’, ‘wpcf7-f’ . $shortcode_id . ‘-p’ . $id . ‘-o’, do_shortcode( $shortcode ) );
}
<?php echo fix_wpcf7_do_shortcode( ‘[contact-form-7 id=”90″ title=”Find apartment”]’, get_the_ID() ); ?>
or
<?php echo do_shortcode( ‘[contact-form-7 id=”90″ title=”Find apartment”]’); ?>