[toc=”2,3,4″ title=”Innehåll”]

”;

if (function_exists(’wp_tag_cloud’)) {
echo ”

Tags

”;
$args = array(
’smallest’ => 8,
’largest’ => 22,
’separator’ => ”     ” );
wp_tag_cloud($args);
echo ”


”;

echo ”

Kategorier

”;
$args = array(
’smallest’ => 8,
’largest’ => 22,
’taxonomy’ => ’category’,
’exclude’ => ’1,7,9’ , // uncategorized, Start, FullText
’separator’ => ’      ’ );
wp_tag_cloud($args);
echo ”


”;
}

//echo ”

Reading file: sitemap.xml

”;
echo ”

Sitemap (sitemap.xml)

”;
$data = file_get_contents(”sitemap.xml” );
$url_strings = explode(’’, $data);
//echo ”extracting ’url’ tag
”;
sort($url_strings);
foreach($url_strings as $url_string) {
//Extract loc tag
$tag_strings = explode(’/” , $tag_strings);

//echo ”


xxxxxxxxxxxxxxxxxxxx ”.htmlentities($loc_strings[0]).” zzzzzzzzzzzzzzzzzzzzzzzz”;

$patterns = array();
$patterns[0] = ’%^[^””]*%’;
$patterns[1] = ’%http://www.mejsla.se%’;
$replacements = array();
$replacements[0] = ”;
$replacements[1] = ”;
$loc= preg_replace($patterns, $replacements, $loc_strings[0]);
echo ”$loc
”;
}
?>


Externa länkar

[wp-blogroll]