<!-- Begin Tag code Mod so Twitter will pull related tweets -->
<?php $posttags = get_the_tags();
$count=0; if ($posttags)
{ foreach($posttags as $tag)
{ $count++; if (1 == $count)
{ $tagname = $tag->name . ' '; } } } ?>
<!-- End Tag code mod -->
tshin, that looks awesome!
function kish_twitter_get_tags() {
$counter = 1;
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
if($counter<=3) {
$thistag.= $tag->name . ' ';
}
$counter++;
ok guys the only fix i could come up with to solve my problem was to change the 3 to a 1 in kish functions.php so it only trys to grab the 1st tag. but with the auto tag generators I have tried the tweets are not always very relevent to the post topic..
is there a way to randomly rotate the order my tags show in wordpress? even if i set tags by hand its a pain to get the right one used as for the related video/twitters because they are displayed alphabetically and its always grabbing the 1st tagCode:function kish_twitter_get_tags() { $counter = 1; $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { if($counter<=3) { $thistag.= $tag->name . ' '; } $counter++;
Hi guys, I'm currently working on my autoblog atm I have tryed really hard to make it looking good, I will post my site when its finished to show you all how it looks and help anyone out...
Currently I'm stuck on a few easy things as seen on techchuck...
1. Popular topics (top sitebar)
2. Topics (replaced tagcloud) on sidebar with colours.
3. Recent comments (side bar)
If anyone knows how to replicate those that would be much appricated...