marciovecchi
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Reviews
In reply to: [Contact Form 7 - Dynamic Text Extension] Great plugin!Hello, could you help me in another topic that you saw qu able to help someone else?
It turns out that I’m trying to print in the body of the thank you page values ??[email] and [name].
But I’m not succeeding.I get the data in the link, but I can not print on the page.
Use the following function in functions.php:
add_action('wpcf7_mail_sent', 'ip_wpcf7_mail_sent'); function ip_wpcf7_mail_sent($wpcf7) { $on_sent_ok = $wpcf7->additional_setting('ip_on_sent_ok', false); if (is_array($on_sent_ok) && count($on_sent_ok)) { header("Location: " . trim($on_sent_ok[0]) . '?email=' . $wpcf7->posted_data['email'] . '?nome=' . $wpcf7->posted_data['name'], true, 302); exit; } }
And use a template for the landing page as well:
<?php // Template Name: Confirma??o Formulário ?> <?php get_header(); ?> <?php global $more; $more = 0; ?> <?php $my_sb = get_post_meta($post->ID, 'sidebarss', 1); if ($my_sb == ''){$sb = 'Right Sidebar';} else { $sb = $my_sb;}; $email = ' . $wpcf7->posted_data['email'] . '; ?> <div class="main_content_area"> <div class="container"> <div class="row"> <div class="span9"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php print "$email"; ?> <?php the_content(); ?> <?php endwhile; ?> <?php endif; ?> </div> <div class="span3 blog_sidebar oi_right_sidebar"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar($sb) ) : ?> <?php endif; ?> </div> </div> </div> </div> <?php get_footer(); ?>
Sorry for the english. Use Google Translate for that.
I hope it helps me.Forum: Plugins
In reply to: [Page Restrict] Restrict woocommerce shop pageHello, you conseguio solve your problem? Because I need the same help.
Viewing 2 replies - 1 through 2 (of 2 total)