Hey guys, I cannot seem to get the_tags() to return my array where i want to display it on the page. It seems to have a mind of its own, or I don't understand how echo statements work.. one of the two. Here is the code I am having problems with, maybe someone can enlighten me as to why it wont output the way I want it to.
`
//Loop Start
if(have_posts()) :
while(have_posts()) : the_post();
$postid++; //Incriment to determine post classes
//Get the needed Post INFO BEFORE ECHO
$link = get_permalink(); //Define Permalink
if ($lukeweddings == true){$link = $link . '&weddings=true'; $siteID = $link;}
$title = get_the_title(); //Title Of Post
$content = get_the_content();
$posttags = the_tags();
$category = the_category();
$postOutput = preg_replace('/<img[^>]+./','', $content);
if ($countLeftOrRight == 0){
$countLeftOrRight++;
}
else {
$countLeftOrRight = 0;
}
if($countLeftOrRight == 1){
images('1', '', '', 'imageleft image'. $postid, $siteID);}
else {images('1', '', '', 'imageright image' . $postid, $siteID);}
echo('<div class="post" id="post' . $postid . '">
<div class="heading heading' . $postid . '">
' . $title . '
</div>
<div class="content content' . $postid . '">'
. $postOutput .
'</div>
<div class="readmore readmore' . $postid . '">Read More >></div>
<div class="postcategories"><span>Categorized Under: </span>' . $category . '</div>
<div class="posttags"><span>Tags: </span>' . $posttags . '</div>
<div class="returnpage"><< Return to Previous</div>
<div class="facebookShare facebookShare' . $postid . '">'
. fbshare_manual() .
'</div>
<div class="clearfloats"></div>
<div class="horizontalRule horizontalRule'. $postid . '"><img class="imageline" src="../../../../images/line.png" alt="" width="600px" /></div>
</div>');
endwhile;
endif; ?>