​
​
<article id=”post-<?php the\\\_ID(); ?>” <?php post\\\_class(); ?>>
​
<header class=”entry-header”>
<h1 class=”entry-title”><?php the\\\_title(); //Get current title editing Archieved version of blog?></h1>
</header><!– .entry-header –>
​
<div class=”entry-content”>
<?php the\\\_content(); ?>
​
<?php if(is\\\_active\\\_sidebar(‘archives-left’)) dynamic\\\_sidebar(‘archives-left’); ?>
<?php if(is\\\_active\\\_sidebar(‘archives-right’)) dynamic\\\_sidebar(‘archives-right’); ?>
<div style=”clear: both; margin-bottom: 30px;”></div><!– clears the floating –>
​
<?php
$total\\\_posts = intval(get\\\_post\\\_meta($post->ID, ‘archived-posts-no’, true));
if($total\\\_posts > 200 || $total\\\_posts < 2) $total\\\_posts = 50; //cureent limit hardcoded will make dynamic
\​
$my\\\_query = new WP\\\_Query(‘post\\\_type=post&nopaging=1’);
if($my\\\_query->have\\\_posts()) {
echo ‘<h1 class=”widget-title”>Last ‘.$total\\\_posts.’ Posts <i class=”fa fa-bullhorn” style=”vertical-align: baseline;”></i></h1>\\\ ’;
echo ‘<div class=”archives-latest-section”><ol>’;
$counter = 1;
while($my\\\_query->have\\\_posts() && $counter <= $total\\\_posts) {
$my\\\_query->the\\\_post();
?>
<li><a href=”<?php the\\\_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the\\\_title\\\_attribute(); ?>”><?php the\\\_title(); ?> <?php the\\\_content(); ?> <?php the\\\_tags(); ?></a></li>
<?php
$counter++;
}
echo ‘</ol></div>’;
wp\\\_reset\\\_postdata();
}
?>
​
<form method=”post” action=”<?php echo $\\\_SERVER\\\[‘PHP\\\_SELF’\\\];?>”>
search: <input type=”text” name=”fsearch”>
<input type=”submit”>
</form>
​
<?php
if ($\\\_SERVER\\\[“REQUEST\\\_METHOD”\\\] == “POST”) {
// collect value of input field
$search = $\\\_POST\\\[‘fsearch’\\\];
if (empty($search)) {
echo “search is empty”;
} else {
echo $search;
}
}
?>
​
​
​
</div><!– .entry-content –>
​
</article><!– #post-## –>
​
[https://codeshare.io/9OWR4V])​
​
​
My issue of now is I can’t get the blog tags to echo out does anyone know how to echo tags associated with a blog post?
[ad_2]