I need to add in the contact form body a custom filter. I was reading through the custom code to be written in functions.php but I wasn’t clear on how to use it for my case.
I have the following situation. I have yith plugin which has this code
<?php echo apply_filters( 'yith_wcwl_email_share_body', urlencode( $share_link_url ) ) ?>
This code generates a specific URL that can be shared in social networks and by email. I want to send this URL not through the share function, but as a part of the Contact Form 7.
Can anyone help me implement this code so the dynamically generated url from this code will be sent by email when Contact form 7 is compiled and sent?
Related
in my website i have a page that shows the job openings. Each job opening is done it as post. So when you click on a job opening it will goes to the detail page and shows the full details.All the job detail page have a unique job id and it is entering using a custom field in the admin using toolset. Then all the detail page have a contact form also for send there resume.so what i need is when sending the mail i need to pass the job id as an hidden field and it should be shown in the mail.
what i tried is
1
<?php echo do_shortcode( '[contact-form-7 id="983" title="contact 1" job ID="'.get_field( 'job-id' ).'"]' ); ?>
i tried this for getting the custom field value along with the shortcode....
i also tried this
2
[hidden hidden-948 "wpcf-job-id"]
i tried this to get the custom field value in the contact form 7 itself but both the codes didn't work for me .....
is there any way to get the custom field value in contact form 7....
Thanks in advance
You Can use this plugin to add custom fields in contact form 7 form
https://wordpress.org/plugins/advanced-custom-fields-contact-form-7-field/
I need help I R & D many contact form plugin's but not found any one working
My requirements are I want contact form to be submitted by Front end as well as backend
[contact-form-7 id="345"]
If I used this above shortcode in backend it display error
Please Help
Is their any way to add new tab on contact form 7 plugin and submit contact form 7 from admin dashboard
Thank You For Help In advance
First of all insert a contact form shortcode into your template file directly. You will need to pass the code into do_shortcode() function.
For Example:
<?php echo do_shortcode('[contact-form-7 id="345"]'); ?>
I have a form where user add his email address, I’m trying to prevent users to enter there email many times. I use "contact form to database plugin" to save email address and export them to excel. while searching on internet I found this solution (link below) but I can’t get it work can you help me please :
https://cfdbplugin.com/?page_id=904
Thanks
I found the solution,
in the line where you put the name of the form you should put the title of the form (line bellow ) :
$formName = 'email_form'; // Change to name of the form containing this field
so, for exemple if we have created with the contact form 7 a form here is the shortcode that we will have :
<?php echo do_shortcode( '[contact-form-7 id="69" title="Email_form" html_name="my_form"]' ); ?>
what I did is I put the value of html_name in the script of CFDB but when I changed to the value of title it works
I'm trying to hide certain posts from displaying on the site using custom code. I CANNOT USE A PLUGIN!
I would like to do something like IF the page is named the-hidden-page do not display it anywhere on the site BUT someone can access it using a URL... For example, http://thedomain/the-hidden-page.
I haven't been successful finding sample code except for this -
<?php if (is_front_page() && !is_paged()
) $posts = query_posts($query_string . '&cat=-33,-66'); ?>
This code is using category names rather than page names. Also if I used the code above I'm not sure where to add it to. I tried function.php but that didn't work.
Can someone provide an example of how the code could be written to hide post with a certain name?
Also tell me in what file I should add your code to?
This is the problem I am trying to find a solution to: I manage a wordpress site that deals with donations. There are 5 options. Once the user clicks on one of them they are sent to a third party site to make a donation. After they make the donation they are redirected back to my site with a set of data (name, email etc.). What I need to do is get that data and send a thank you email to the user. Is there some wordpress plugin I can use to handle the incoming data and send the email? Or maybe use a plugin like Contact form 7 to do it? I am not really familliar with wordpress. Really basic knowledge
The easiest way to do this would be to create a custom page template with logic to capture the data sent after donating in it and apply the template to a page.
E.g.
wp-content/themes/your-theme/ipn.php
<?php
/**
* Template Name: IPN
*/
// Grab the data that's returned, however it's returned.
$data = $_GET['data'];
// Use WordPress mail function to send your email
wp_mail( $to, $subject, $message, $headers, $attachments );
// Either redirect to another page or display a thank you message.
Then go into your admin, create a new page called IPN, select your page template from the drop down and publish. You can use the URL to this page to pass data back to it from the 3rd party site after payment.