Esempio n. 1
0
Author: Christine Davis
Author URI: http://www.neato.co.nz
*/
/* Maybe you'll need this.. maybe you won't...
$path = ini_get('include_path');
if (!(substr($path, strlen( $path ) - strlen(PATH_SEPARATOR)) === PATH_SEPARATOR)) {
	$path .= PATH_SEPARATOR;
}
$path .= $_SERVER['DOCUMENT_ROOT'] . "/wp-content/plugins/UltimateTagWarrior";
ini_set("include_path", $path);
*/
require_once 'ultimate-tag-warrior-core.php';
require_once 'ultimate-tag-warrior-actions.php';
load_plugin_textdomain('ultimate-tag-warrior', 'wp-content/plugins/UltimateTagWarrior/languages');
$utw = new UltimateTagWarriorCore();
$utw->CheckForInstall();
function UTW_ShowTagsForCurrentPost($formattype, $format = "", $limit = 0)
{
    global $utw, $post;
    $format = $utw->GetFormat($formattype, $format);
    $utw->ShowTagsForPost($post->ID, $format, $limit);
}
function UTW_ShowRelatedTagsForCurrentPost($formattype, $format = "", $limit = 0)
{
    global $utw, $post;
    $format = $utw->GetFormat($formattype, $format);
    $utw->ShowRelatedTags($utw->GetTagsForPost($post->ID), $format, $limit);
}
function UTW_ShowRelatedPostsForCurrentPost($formattype, $format = "", $limit = 0)
{
    global $utw, $post;