Ajax software
Free javascripts
↑
Main Page
2.
Copy the
email
folder from the archive to your
blog/wp-content/plugins
folder.
3.
In , go to the plugins administration page, and activate the WP-Email plugin. Then
click the e-mail tab, select e-mail options, and set up your mail options as desired.
4.
Now you need to alter the theme you’re using to include this new feature. For example,
assuming you’re using the default theme, open the
blog/wp-content/themes/default/
index.php
, and find the line that starts with:
<p class=”postmetadata”>Posted in <?php the_category(‘, ‘) ?>
This is the line that generates, by default, the links that follow each post. You can add the following
code to include an “e-mail this link” link:
<?php
if(function_exists(‘wp_email’))
{
email_link(‘e-mail this link’, ‘e-mail this page’);
}
?> |
5.
Reloading the page displays a link as shown in Figure 16-8.
Figure 16-8
297
Chapter 16: : Creating an SE-Friendly Blog
c16.qxd:c16 11:04 297
Ajax software
Free javascripts
→