Např. pro „TheFreeDictionary“:http://thefreedictionary.com/ do functions.php přidáme shortcode:
/—code php
function tfd_lookup($atts)
{
$keyword = $atts[‚0‘];
$output = ‚‚ . $keyword . ‚‚;
return $output;
}
add_shortcode(‚tfdl‘, ‚tfd_lookup‘);
\—
a v textu příspěvku pak výraz, které chceme dohledat, označíme příslušným shortcodem:
[tfdl hledaný_výraz]
„Další příklady »“:http://wpcodesnippets.info/blog/five-easy-dictionary-lookup-shortcodes.html
*Můžeme použít i pluginy:*
**Click2Refer Virtual Dictionary**
„http://wordpress.org/plugins/click2refer-virtual-dictionary/“:http://wordpress.org/plugins/click2refer-virtual-dictionary/
Click2Refer plugin lets the blog readers to lookup the Wordnet dictionary just by a double click on the word they want to refer.
This will take in a floating window into your blog upon the first double click.
[* http://s.wordpress.org/extend/plugins/click2refer-virtual-dictionary/screenshot-2.jpg?r=717851 *]
**Double Click Dictionary Look-up**
„http://wordpress.org/plugins/double-click-dictionary-look-up/“:http://wordpress.org/plugins/double-click-dictionary-look-up/
Double click on the screen to highlight a word. This creates a qTip next to the word where when clicked, a pop-up will appear with the Miriam-Webster.com’s definition on the word.
„Top 10 WordPress Dictionary Plugins »“:www.wordpressintegration.com/blog/top-10-wordpress-dictionary-plugins-you-can-use/