Adding tags SQL
-
Hey:) I have function:
<?php
$posttags = get_the_tags();
$count=0; $sep=”;
if ($posttags) {
echo ‘ ‘;
foreach($posttags as $tag) {
$count++;
echo $sep . ‘<div class=”single_tags”><span class=”tag-links”>term_id).'”>’.$tag->name.’</span></div><div class=”single_tags”><span class=”tag-links1″>term_id).'”>’.$tag->name.’</span></div><div class=”single_tags”><span class=”tag-links2″>term_id).'”>’.$tag->name.’</span></div><div class=”single_tags”><span class=”tag-links3″>term_id).'”>’.$tag->name.’</span></div>’;
$sep = ”;
if($count>0) break;
}
}
?>And this function shows 4 colorful blocks, but the only one tag i.e try try try try, but I would like to show try1 try2 try3 try4
Is there any option in this function to do this?
I hear that it can be done by SQL and select value. How? I’m the beginner in wordpress and programming.
Thanks for help in advance !
- The topic ‘Adding tags SQL’ is closed to new replies.