Allows people to recommend/send your WordPress blog's post/page to a friend.
wp-content/themes/<YOUR THEME NAME>/index.php
You may place it in single.php, post.php, page.php, etc also.<?php while (have_posts()) : the_post(); ?><?php if(function_exists('wp_email')) { email_link(); } ?>Simply add this code inside the loop where you want the email link to display:
if(function_exists('email_link')) {
email_link();
}
Many customizations can be made from the options page (WP Admin->E-Mail->E-Mail Options).
Additionally, you can override the "E-Mail Text Link for Post" and "E-Mail Text Link for Page" options with the first two parameters of the email_link function like this:
if(function_exists('email_link'))
email_link( 'E-Mail Text Link for Post', 'E-Mail Text Link for Page');
You can also force email_link() to return the link rather than echo it by setting the third parameter to false:
if(function_exists('email_link')) {
$email_link = email_link( 'E-Mail Text Link for Post', 'E-Mail Text Link for Page', false);
} else {
$email_link = '';
}
echo $email_link;
There are two options for this: 1. You can use the included widget by going to Wp-Admin -> Appearance -> Widgets" and using the widget named "Email" 1. You can use a number of included theme functions for displaying various stats. Please continue to read these FAQs for more information.
Simply insert this code into your theme:
if (function_exists('get_mostemailed'))
get_mostemailed('both', 10);
The first parameter is what you want to get, 'post', 'page', or 'both' and defaults to 'both'. The second parameter is the maximum number of posts/pages you want to get.
Simply insert this code into your theme:
if (function_exists('get_emails'))
get_emails();
Simply insert this code into your theme:
if (function_exists('get_emails_success'))
get_emails_success();
Simply insert this code into your theme:
if (function_exists('get_emails_failed'))
get_emails_failed();
wp-email.phpdefine('EMAIL_SHOW_REMARKS', true);define('EMAIL_SHOW_REMARKS', false);If you do not want to email a portion of your post's content, do the following:
[donotemail]Text within this tag will not be displayed when emailed[/donotemail]
The text within [donotemail][/donotemail] will not be displayed when you are emailing a post or page. However, it will still be displayed as normal on a normal post or page view. Do note that if you are using WP-Print, any text within [donotemail][/donotemail] will not be printed as well.
WP-Email will load email-css.css from your theme's directory if it exists. If it doesn't exist then it will load the default email-css.css that comes with WP-Email. Just move your custom CSS to the appropriate file in your theme directory and it will be "upgrade-proof"
If you add a custom field with the key "wp-email-title" it will be used as the E-Mail title.
If you add a custom field with the key "wp-email-remark" it will be placed in the remarks field in the E-Mail form.
Requires: 2.8 or higher
Compatible up to: 3.5.1
Last Updated: 2013-4-10
Downloads: 333,661
1 of 9 support threads in the last two months have been resolved.
Got something to say? Need help?