Jerome s Keywords Plugin


Jerome's Keywords Plugin

Jerome's Keywords Plugin enables you to tag your posts with one or more keywords (Figure 47). Blog visitors can then click a keyword for a post to see other posts with the same keyword assigned. This makes posts in your blog easier to find by topic, without relying on category.

Figure 47. Keywords can be displayed at the bottom of a post.


Jerome's Keywords Plugin was written by Jerome Lavigne and can be downloaded from vapourtrails.ca/wp-keywords.

Tip

  • The keywords you assign with Jerome's Keywords Plugin are also recognized and indexed as tags by Technorati. You can learn more about Technorati and how it can help drive visitors to your blog for free at www.technorati.com.


To install Jerome's Keywords Plugin

Follow the instructions earlier in this chapter and on the Jerome's Keywords Plugin Web page to install and activate the plugin.

To use Jerome's Keywords Plugin

1.

Open the template file containing The Loop for your theme. Normally, this will be the index.php or post.php file

2.

Insert the following code inside The Loop, but after the post (Code 1):

Tags: <?php the_post_keytags(); ?>.


3.

Save the file.

4.

In the Write Post window for your blog, enter keywords in the Keywords box below the post editing area (Figure 48).

Figure 48. A Keywords box appears in the Write Post window, right beneath the Post box.


5.

Publish the post.

6.

View your blog and look at a post with keywords. The keywords should appear below the post (Figure 47).

Code 1. Inserting Jerome's Keywords Plugin template tag in The Loop

<?php while (have_posts()) : the_post(); ?>  <div  color: #C1BCBC;">ID(); ?>">    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>     <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>     <div >        <?php the_content('Read the rest of this entry &raquo;'); ?>     </div>     <p >Posted in <?php the_category(', ') ?> | <?php edit_ post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>     Tags: <?php the_post_keytags(); ?>  </div> <?php endwhile; ?>

Tips

  • We tell you more about The Loop in Chapter 6.

  • You can also add keywords for posts you have already composed and published. The Keywords box appears in the Write Post window when creating a new post or editing an existing one. We tell you more about writing and editing posts in Chapter 3.





WordPress 2. Visual QuickStart Guide
WordPress 2
ISBN: 0321450191
EAN: 2147483647
Year: 2004
Pages: 142

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net