<?php 
if ($tag_posts->have_posts()) {
    while ($tag_posts->have_posts()) {
        $tag_posts->the_post();
        ?>
    <article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class('cf');
        ?>
 role="article">
      <header class="article-header">
        <figure class="helper-image">
          <?php 
        picturefill('dreams-640x400', 'dreams-560x350', 'dreams-480x300');
        ?>
        </figure>
      </header>
      <section class="entry-content cf">
        <small>
          <?php 
        single_tag_title();
        ?>
 <i><?php 
        time_ago();
        ?>
</i>
        </small>
        <h2 class="h2 entry-title">
          <a href="<?php 
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>

          <article id="post-<?php 
            the_ID();
            ?>
" <?php 
            post_class('cf');
            ?>
 role="article">
            <header class="article-header">
              <figure class="helper-image">
                <?php 
            picturefill('dreams-480x300', 'dreams-480x300', 'dreams-480x300');
            ?>
              </figure>
            </header>
            <section class="entry-content cf">
              <small>
                <?php 
            $categories = get_the_category();
            $category_id = $categories[0]->cat_ID;
            echo get_cat_name($category_id);
            ?>
                <i><?php 
            time_ago();
            ?>
</i>
              </small>
function dreams_related_posts()
{
    echo '<ul id="dreams-related-posts">';
    echo '<h2>Notas Relacionadas</h2>';
    global $post;
    $tags = wp_get_post_tags($post->ID);
    $tag_arr = '';
    if ($tags) {
        foreach ($tags as $tag) {
            $tag_arr .= $tag->slug . ',';
        }
        $args = array('tag' => $tag_arr, 'numberposts' => 4, 'post__not_in' => array($post->ID));
        $related_posts = get_posts($args);
        if ($related_posts) {
            foreach ($related_posts as $post) {
                setup_postdata($post);
                ?>
      <li class="related_post">

        <figure class="helper-image">
          <a class="entry-unrelated" href="<?php 
                the_permalink();
                ?>
" title="<?php 
                the_title_attribute();
                ?>
">
            <?php 
                picturefill('dreams-480x300', 'dreams-480x300', 'dreams-320x200');
                ?>
          </a>
        </figure>

        <a class="entry-unrelated" href="<?php 
                the_permalink();
                ?>
" title="<?php 
                the_title_attribute();
                ?>
">
          <?php 
                the_title();
                ?>
        </a>

      </li>
    <?php 
            }
        } else {
            ?>
    <?php 
            echo '<li class="no_related_post">' . __('No Related Posts Yet!', 'dreamstheme') . '</li>';
            ?>
    <?php 
        }
    }
    wp_reset_postdata();
    echo '</ul>';
}
      <?php 
$argsLa = array('cat' => '-154', 'order' => 'DESC', 'posts_per_page' => 5);
$latestSidebar = new WP_Query($argsLa);
?>
        <?php 
if ($latestSidebar->have_posts()) {
    while ($latestSidebar->have_posts()) {
        $latestSidebar->the_post();
        ?>
          <li id="post-<?php 
        the_ID();
        ?>
"  class="cf">
            <figure class="helper-image">
              <?php 
        picturefill('dreams-160x100', 'dreams-160x100', 'dreams-160x100');
        ?>

            </figure>
            <h5><a href="<?php 
        the_permalink();
        ?>
"><strong><?php 
        the_title();
        ?>
</strong></a></h5>
          </li>
        <?php 
    }
}
wp_reset_postdata();
        <nav class="more-videos--arrows" id="moreVideoArrowsOne"></nav>
        <div class="article-grid cf"  id="vidNews">

          <?php 
if ($ultimas->have_posts()) {
    while ($ultimas->have_posts()) {
        $ultimas->the_post();
        ?>
            <div class="item">
              <figure class="helper-image">
                <a href="<?php 
        the_permalink();
        ?>
">
                  <?php 
        picturefill('dreams-240x150', 'dreams-240x150');
        ?>
                </a>
              </figure>
              <small><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a></small>
            </div>
          <?php 
    }
}
wp_reset_postdata();