if ($post_type == 'texthelpdoc') { $posttype_text = "Related Help Documents"; } else { $posttype_text = "Related Post"; } } foreach ($tags as $tag) { $tagis = $tag->slug; } ?> <div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 Sidebar"> <?php sidebarvideo($tagis, $vid_tax); sidebarfaq($tagis, $faq_tax); sidebartexthelp($tagis, $help_tax); ?> </div> <?php function sidebartexthelp($tagis, $tax_is_name) { ?> <div class="box"> <h4> <?php echo 'Related Help Documents'; ?> <?php echo $tax_is_name; ?> </h4>
} else { if ($post_type == 'texthelpdoc') { $posttype_text = "Related Help Documents"; } else { $posttype_text = "Related Post"; } } foreach ($tags as $tag) { $tagis = $tag->slug; } ?> <div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 Sidebar"> <?php sidebarvideo($tagis); sidebarfaq($tagis); sidebartexthelp($tagis); ?> </div> <?php function sidebartexthelp($tagis) { ?> <div class="box"> <h4> <?php echo 'Recent Help Documents'; ?> </h4> <hr> <hr>