Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $wp_query;
- $pagina = $wp_query->get('paged');
- if(!empty($pagina)){
- $pagina = 'paged=' . $pagina;
- }
- global $more;
- $more = -1; //declare and set $more before The Loop
- $wp_query = new WP_Query("post_type=noticia&post_status=publish&posts_per_page=6&{$pagina}");
- if (have_posts ()):
- while ($wp_query->have_posts()) : $wp_query->the_post();
- ?>
- <div class="boxBlog">
- <h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
- <p>Postado em <?php the_date(); ?>.</p>
- <?php the_content(); ?>
- <div class="clearfix"></div>
- <div class="boxTags">
- <?php the_taxonomies(); ?>
- </div>
- <!-- <div>
- <div id="fb-root"></div>
- <script>(function(d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) {return;}
- js = d.createElement(s); js.id = id;
- js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1";
- fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk'));</script>
- <div class="fb-comments" data-href="<?php the_permalink(); ?>" data-num-posts="4" data-width="600"></div>
- </div>-->
- </div>
- <?php endwhile;
- endif;
- ?>
- //Página tag.php
- <?php
- if ( have_posts() ) : while ( have_posts() ) : the_post();
- ?>
- <div class="boxBlog">
- <h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
- <p>Postado em <?php the_date(); ?>.</p>
- <?php the_content(); ?>
- <div class="clearfix"></div>
- <div class="boxTags">
- <?php the_tags(); ?>
- </div>
- <!-- <div>
- <div id="fb-root"></div>
- <script>(function(d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) {return;}
- js = d.createElement(s); js.id = id;
- js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1";
- fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk'));</script>
- <div class="fb-comments" data-href="<?php //the_permalink(); ?>" data-num-posts="4" data-width="600"></div>
- </div>-->
- </div>
- <?php endwhile;
- endif;
- ?>
Add Comment
Please, Sign In to add comment