echo get_permalink();
        ?>
">
                <div class="item ">

                    <?php 
        the_post_thumbnail('thumb');
        ?>

                    <?php 
        the_title('<h2 class="titulo-post cat-' . $cat . '">', '</h2>');
        ?>

                    <div class="conteudo-post">
                        <?php 
        the_special_excerpt(get_the_ID(), 150, ' <span class="extra">{...}</span>');
        ?>
                    </div>
                </div>
            </a>

        <?php 
    }
    ?>

    <?php 
} else {
    ?>

        <p>Nenhum artigo foi encontrado!</p>
} else {
    ?>

                <div class="col-sm-18">
                    <?php 
    the_title('<h2>', '</h2>');
    ?>
                    <p class="post-meta-data">
                        <?php 
    vertigemMetaData();
    ?>
                    </p>

                    <div class="conteudo">
                        <?php 
    the_special_excerpt($post->ID, 450, '{...}');
    ?>
                    </div>

                </div>
            <?php 
}
?>

        </div>
        </a>


    </div><!-- .entry-content -->

function getPost()
{
    global $post;
    ?>
    <div id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class();
    ?>
>
        <a href="<?php 
    the_permalink();
    ?>
">
            <?php 
    if (has_post_thumbnail()) {
        ?>
                <div class="post-with-thumb">
                    <?php 
        the_post_thumbnail('capa-thumb');
        ?>
  
                    <div class="post-capa-hover item-hover">
                        
                    </div>
                    <?php 
        the_title('<h2 class="item31 item-hover">', '</h2>');
        ?>
                    <p class="cat-flag tipo9 <?php 
        echo getOneCat();
        ?>
"><?php 
        echo getOneCat();
        ?>
</p> 
                    <p class="post-meta-data item-hover">
                        <?php 
        vertigemMetaData();
        ?>
                    </p>
                </div>                                       

                <div class="the_special_excerpt">
                    <?php 
        the_special_excerpt($post->ID, 70, ' <span class="extra">{...}</span>');
        ?>
                </div>


            <?php 
    } else {
        ?>
                <div class="post-no-thumb">
                    <?php 
        the_title('<h2 class="item-hover item6">', '</h2>');
        ?>
                    <p class="post-meta-data item-hover">
                        <?php 
        vertigemMetaData();
        ?>
                    </p>
                </div>
                <div class="the_special_excerpt">
                    <?php 
        the_special_excerpt($post->ID, 150, '{...}');
        ?>
                </div>
            <?php 
    }
    ?>
        </a>
    </div>
    <?php 
}
} else {
    ?>

                    <div class="col-sm-18">
                        <?php 
    the_title('<h2>', '</h2>');
    ?>
                        <p class="post-meta-data">
                            <?php 
    vertigemMetaData();
    ?>
                        </p>

                        <div class="conteudo">
                            <?php 
    the_special_excerpt($post->ID, 450, '<span class="extra">{...}</span>');
    ?>
                        </div>

                    </div>
                <?php 
}
?>

            </div>
        </a>


    </div><!-- .entry-content -->

    /**
     * Front-end display of widget.
     *
     * @see WP_Widget::widget()
     *
     * @param array $args     Widget arguments.
     * @param array $instance Saved values from database.
     */
    public function widget($args, $instance)
    {
        //        echo $args['before_widget'];
        //        if (!empty($instance['title'])) {
        //            echo $args['before_title'] . apply_filters('widget_title', $instance['title']) . $args['after_title'];
        //        }
        //        echo __('Hello, World!', 'text_domain');
        //        echo $args['after_widget'];
        $args = array('post_type' => 'artigo', 'posts_per_page' => 1, 'order' => 'DESC', 'orderby' => 'date');
        // The Query
        $the_query = new WP_Query($args);
        ?>
        <div class="utlimo-artigo">
            <?php 
        if ($the_query->have_posts()) {
            ?>
                <?php 
            while ($the_query->have_posts()) {
                $the_query->the_post();
                ?>
                    <?php 
                $terms = wp_get_post_terms(get_the_ID(), 'nome-coluna');
                ?>
           
                    <a href="<?php 
                echo get_permalink();
                ?>
">
                        <?php 
                echo get_avatar(get_the_author_meta('ID'), $size = '300');
                ?>

                        <p class="nome-autor"><?php 
                echo get_the_author();
                ?>
</p>

                        <p class="nome-coluna">
                            <span class="extra2" >:</span>
                                <?php 
                echo $terms[0]->name;
                ?>
                            <span class="extra2">:</span>
                        </p>

                        <?php 
                the_title('<h2 class="titulo-artigo">', '</h2>');
                ?>

                        <div class="conteudo-artigo">
                            <?php 
                the_special_excerpt(get_the_ID(), 150, ' <span class="extra">{...}</span>');
                ?>
                        </div>
                    </a>

                <?php 
            }
            ?>

            <?php 
        } else {
            ?>

                <p>Nenhum artigo foi encontrado!</p>

            <?php 
        }
        ?>

        </div>

        <?php 
        wp_reset_postdata();
    }