$ReadCatPosts->Query("WHERE #post_category#");
                ?>
                            <article<?php 
                if ($a % 3 == 0) {
                    echo ' class="right"';
                }
                ?>
>
                                <h1><a target="_blank" href="../categoria/<?php 
                echo $sub->category_name;
                ?>
" title="Ver Categoria"><?php 
                echo $sub->category_title;
                ?>
</a>  ( <?php 
                echo $ReadCatPosts->getRowCount();
                ?>
 posts )</h1>

                                <ul class="info post_actions">
                                    <li><strong>Data:</strong> <?php 
                echo date('d/m/Y H:i', strtotime($sub->category_date));
                ?>
Hs</li>
                                    <li><a class="act_view" target="_blank" href="../categoria/<?php 
                echo $sub->category_name;
                ?>
" title="Ver no site">Ver no site</a></li>
                                    <li><a class="act_edit" href="painel.php?exe=categories/update&catid=<?php 
                echo $sub->category_id;
                ?>
 private function setName()
 {
     $Where = isset($this->Post) ? "post_id != {$this->Post} AND " : "";
     $WsPosts = new WsPosts();
     $WsPosts->setPost_title($this->Data['post_title']);
     $WsPosts->Query("WHERE {$Where} #post_title#");
     if ($WsPosts->getResult()) {
         $this->Data['post_name'] = $this->Data['post_name'] . '-' . $WsPosts->getRowCount();
     }
 }