KB Linker
KB Linker will link phrases you specify to sites you specify. For example, you could make it so that whenever "Wordpress" occurs in a post it is automatically linked to wordpress.org.
Enter your keyword-URL pairs in the box below. Each pair should appear on its own line. Separate each keyword from its respective link with "->". Look at the bottom of this page for important details. Below are a few examples to get you going. Note that the link to Google will open in a new window, since it is followed with " _blank" (note the space).
'.$sample.'
Alright, knock yourself out:
Considerations:
- URLs should be valid (i.e. begin with http://)
- The same URL can appear on more than one line (i.e. with more than one keyword).
- Because a word can only link to one site, a keyword should not appear on more than one line. If it does, only the last instance of the keyword will be matched to its URL.
- If one of your keywords is a substring of the other--e.g. "download wordpress" and "wordpress"--then you should list the shorter one later than the first one.
- Keywords are case-insensitive (e.g. "wordpress" is the same as "WoRdPrEsS").
- Spaces count, so "wordpress" is not the same as "wordpress ".
- Keywords will be linked only if they occur in your post as a word (or phrase), not as a partial word. So if one of your keywords is "a" (for some strange reason), it will be linked only when it occurs as the word "a"--when the letter "a" occurs within a word, it will not be linked.
- You can use any valid target attribute, not just "_blank"--see W3C for a list of valid targets.
';
}
function kb_linker_admin_page(){
add_submenu_page('options-general.php', 'KB Linker', 'KB Linker', 5, 'kb_linker.php', 'kb_linker_options_page');
}
add_filter('the_content', 'kb_linker', 9); // run before Dagon Design Sitemap Generator (runs at priority 10)
add_action('admin_menu', 'kb_linker_admin_page');
?>