I generated a random number concatenated with the date of the day in a custom tag. This number must appear in the imput and be sent in the body of the email. This part of the number is working, but in the body of the email only the short code [prot] appears without the number.
The code in the function. php is like this:
add_action( 'wpcf7_init', 'custom_add_form_tag_prot' );
function custom_add_form_tag_prot() {
wpcf7_add_form_tag( 'prot', 'custom_prot_form_tag_handler' ); // "prot" is the form-tag type
}
function custom_prot_form_tag_handler( $tag ) {
$number = random_int(10000, 999999);
$date = date('dmy');
$numData = "Number " . $number . "." . $date;
//$protocol='<p>'.$numData.'</p>';
$protocol='<input class="wpcf7-form-control cws_width_50" style="color:blue" disabled="disabled" value="'.$numData.'">';
return $protocol;
$_SESSION = $protocol;
}
Remembering that I already tried my_special_mail_tag without success. Could someone please have a solution? Thanks for the help.
]]>
Hello,
I am accessing product pricing from an external API and have them accessible across the website using shortcodes, i.e; [priceProductA] or [priceProductB].
Is it possible to use these short codes in form fields as values?
<label> Rice Varieties
[select_custom rice-varieties “[fob5pct]|IRRI6 White Rice, 5% Broken” “[fob10pct]|IRRI6 White Rice, 10% Broken” “[fob15pct]|IRRI6 White Rice, 15% Broken”]
</label>
Is your plugin able to parse these shortcodes and display their values?
]]>Hi,
The form I made with 2 columns is in mobile view, the tags are not 100%. How can I make the mobile tag width 100%?
Thank you..
]]>Hi there,
I’ve been working with your plugin for a while and on a bunch of sites, it’s a true lifesaver ! so thanks already.
Today, I’m on a new site (uni-que.be), and for some reason I’ve activated all my usual plugins (column shortcodes, yours, CF7, CF7 builder, etc), yet the shortcodes dont appear when i create my CF, AND when I use them from memory, they just appear as plain text on my website.
Do you have any ideas how to fix this? I’ve already tried uninstall/reinstall, and deactivating all other plugins…
thanks !
jeanne
Please check my below code:
I want to send page title into mail body:
function post_title_shortcode(){
return get_the_title();
}
add_shortcode('post-Title','post_title_shortcode');
function my_special_mail_tag( $output, $name, $html ) {
if ( 'post-Title' == $name )
$output = do_shortcode( "[$name]" );
return $output;
}
add_filter( 'wpcf7_special_mail_tags', 'my_special_mail_tag', 10, 3 );
]]>
Hi, dev.
Just to know if you are still working on your great plugin and it is not abandoned.
Regards.
]]>Is it possible to add a shortcode in the email sent? If not will this be available in a future update? I note it has been a year since an update.
]]>Hi,
I installed Contact Form 7 Shortcode Enabler plugin and created CF7 form.
I add a “Click to see details” text with [ultimate_modal] …..[/ultimate_modal] shortcode within form.
When click the “Click to see details” text, I want to open a popup showing details.
But, it does not open the popup.
How can I realize it?
Regards
]]>Trying to be able to use this car look up function to display in a form which can be sent via email. If you go to : https://www.engine-repair.co.uk/ type in a reg number and fill in the form, I would like those details to also show in the email but it is currently just showing the shorcode
Make: [ukvd_getbasicitem dataitem='make']
Model: [ukvd_getbasicitem dataitem='model']
Year: [ukvd_getbasicitem dataitem='year']
Colour: [ukvd_getbasicitem dataitem='colour']
<label> Your Name (required)
[text* your-name] </label>
<label> Your Email (required)
[email* your-email] </label>
<label> Subject
[text your-subject] </label>
<label> Your Message
[textarea your-message] </label>
[submit "Send"]
Function trying in function.php
function addUkvdMailTags( $output, $name, $html ) {
if ( ‘ukvd_getbasicitem_make‘ == $name )
$output = do_shortcode( "[ukvd_getbasicitem dataitem='make']" );
return $output;
}
add_filter( 'wpcf7_special_mail_tags', 'addUkvdMailTags' , 10, 3 );
Any help is much appreciated, thank you.
]]>hi there,
how can i make two column in one line for contact 7?
like first name, last name text field in the same line.
thank you
Hi! great plugin.
I have a shortcode from the tablepress plugin ([table-cell id=10 cell=C3 /])
and I want to include it into a “select” form tag of CF7
[select* My_tag “Default value” [table-cell id=10 cell=C3 /] ]
Unfortunately, I did not get it to work.
Can you help? Thank you
Daniele
Hi !
I add short-code “[ngv_my_validator_shortcode]” inside the contact form 7. This short-code generate from Numbers generator and validate plugin. The plugin’s use is to generate and validate pre-generated numbers.
If I use this short-code “[ngv_my_validator_shortcode]” to any other page. It’s work good. But If I use inside contact form 7 after activating plugin Contact Form 7 Shortcode Enabler it’s only show but not work actually.
My Short-code of contact form 7 is below …
<div class="form-flat">
[text* your-name default:user_display_name placeholder "Doctor Name (required)"]
[email* your-email default:user_email placeholder "Doctor Email (required)"] </p>
[tel* your-phone default:user_phone placeholder "Doctor Phone (required)"] </p>
[ngv_my_validator_shortcode]
[submit class:button primary "Submit"]
</div>
Thanks
Hi Author,
I have installed your plugin and to use with International Telephone Input which is external wordpress plugin. The plugin provides shortcodes to output the telephone number but what I want to do is I want to parse this shortcode to external api which is resulting the same shortcode and not it’s value.
Thanks in advance.
]]>Hey guys, how can I make my contact form auto-reply emails to contain a custom shortcode that shows a template? this shortcode works on normal wordpress pages, but doesn’t work on CF7 email template., not even using this plugin.
this is my shortcode declared on functions.php
function sc_mostrarcursos($atts, $content = null) {
extract(shortcode_atts(array(
"id" => '1',
), $atts));
global $post;
$postargs = array(
'post_type'=> 'product',
'order'=> 'DESC',
'post_type' => 'product',
'posts_per_page' => 1,
'post__in'=> array($id)
);
$myposts = get_posts($postargs);
$retour='<ul>';
foreach($myposts as $post) :
setup_postdata($post);
$retour.= get_template_part('template_curso');
endforeach;
$retour.='</ul> ';
return $retour;
}
add_shortcode("mostrarcursos", "sc_mostrarcursos");
and this how I’m rendering it, no success… emails arrive with the plain shortcode.
[mostrarcursos id=”5240″]
I checked the link shared, but there is not clue on how to put some parameters – atts from the shortcode dynamically… any hints???
The solution Solution – using wpcf7_special_mail_tags filter is not working for me.
]]>Hey guys, how can I make my contact form auto-reply emails to contain a custom shortcode that shows a template? this shortcode works on normal wordpress pages, but doesn’t work on CF7 email template., not even using this plugin.
this is my shortcode declared on functions.php
function sc_mostrarcursos($atts, $content = null) {
extract(shortcode_atts(array(
"id" => '1',
), $atts));
global $post;
$postargs = array(
'post_type'=> 'product',
'order'=> 'DESC',
'post_type' => 'product',
'posts_per_page' => 1,
'post__in'=> array($id)
);
$myposts = get_posts($postargs);
$retour='<ul>';
foreach($myposts as $post) :
setup_postdata($post);
$retour.= get_template_part('template_curso');
endforeach;
$retour.='</ul> ';
return $retour;
}
add_shortcode("mostrarcursos", "sc_mostrarcursos");
and this how I’m rendering it, no success… emails arrive with the plain shortcode.
[mostrarcursos id=”5240″]
I checked the link shared, but there is not clue on how to put some parameters – atts from the shortcode dynamically… any hints???
]]>Great plugin! only issue that bothers me: shortcode (other than the one from wpcf7) is not working in the email body?
has anybody any hint who to make this work?
@tz-media being a code wizard, can you help? this would be appreciated very much. we have an online test and would like to include the score in the wpcf7-form you have to fill out once you made the test (so we know from the form how many points you made and can react accordingly,
best, K
]]>If html comments are embedded then the shortcodes do not work.
E.g.
<!– First Half –>
[one_half]
One
[/one_half]
<!– 2nd Half –>
[one_half_last]
Two
[/one_half_last]
Result:
One
Two
I would like to create a grid where I have two fields in one half of the row and one field on the other half, doing something like this:
[one-half]
[one-half] field goes here [/one_half]
[one-half_last] field goes here [/one_half_last]
[/one_half]
[one-half_last] field goes here [/one_half_last]
[/one-half_last]
… if shortcodes would be executed within a contact form 7-Shortcode. So it would be possible to generate dynamic text:
[textarea* your-message {myshortcode att=’att’}]
Something in that matter…
Thanks for that plugin!
]]>I am having trouble adding in a Pods template title as the option in a drop down on the contact form 7 template. I have installed this plugin and it doesn’t seem to help.
<label>Select the position you’re applying for:
[select* Postition “Technical Specialist” “Marketing Director” “Machine Design Engineer” “[pods name=”job” template=”Careers Page Template”]”]
</label>
This should be able to grab the post titles for the Jobs pod via the Careers page template and display each of them in the drop down.
It this possible with this plugin?
what displays on the form is:
Select the position you’re applying for:
“]
Any help is appreciated
]]>Hi,
I installed and enabled the CF7 Short Code, but I do not see anything I can create 2 or 3 columns here.
Thanks..
]]>Hi!
CF7 Version 4.9.1
Contact Form 7 Shortcode Enabler Version 1.1
The “Contact Form 7 Shortcode Enabler” does not work in the Message Body. I found that shortcodes that work in the CF7 form, does not work in the emails that get sent.
–Steve
]]>Hi,
we creates our own theme based on ACF (Advanced Custom Fields) and Contact-Form 7 shortcodes will not activate the relevant form: we see only the shortcode in the visible output and not the form (it semms no function and all of your plugin here)
I have a problem with Contact Form 7 Shortcode Enabler, but the Shortcode does not work, I tried several times without success. I attached the screens, please your urgent help.
Contact Form 7 Shortcode Enabler (Version: 1.1)
Contact Form 7 (Versión 4.9)
Wordpress (Versión 4.8.1)
https://i64.tinypic.com/2efqhxs.jpg
https://i65.tinypic.com/35hii6a.jpg
Thank you very much
Jesús Camarena
Hello ??
I’m having trouble getting the plugin to work in both the email notification as well as the mail 2. It doesn’t work in either one.
Please help — this would really help me.
[includeme file=”email/autoresponder.html”]
Jared
]]>Dear Support,
I istalled the plugin CF7 Short Code and activate, but I see nothing where I can now create 2 or 3 colums.
I have WP 4.8 you can see it at https://amorbrazil.com/wp/kontakt/
Perhaps you can help me.
Thanks in advanvance.
BR
]]>Hi I placed short code or Instagram feed to be appeared when anybody receive the email. I also installed this plugin but when anybody receiving the email, instead of Instagram feed only short code ([instashow rows=”1″ columns=”5″]) is appearing in the email, Any help highly appreciated. Thank you
Link of form: https://beuniquegroup.com/marketing/mailchimp-newsletter/
Please check this Screenshot: https://prnt.sc/f8wxl4
]]>Shortcodes do not work in the form and the mail template.
Where to insert shortcodes? Show on screenshots please?
Hi there!
I have activated your plugin on my site. It works nearly fine. But the submit-button doesn’t work anymore. Perhaps there are two buttons now, one of contact form 7 and one of the shortcoded plugin… What can I do?
]]>