This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 24th, 2013  |  syntax: None  |  size: 0.94 KB  |  views: 54  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. define('WP_USE_THEMES', false);
  3. include("wp-blog-header.php");
  4. ?>
  5. <?php get_header();?>
  6.  
  7.  
  8.   <div id="content">
  9.  
  10.     <div id="page">
  11.     <?php
  12. global $post;
  13. //$myposts = query_posts( array( 'posts_per_page' => 2, 'showposts' => 10, 'paged' => get_query_var('paged') ) );
  14. $myposts = query_posts( array( 'showposts' => 5, 'paged' => get_query_var('paged') ) );;
  15. foreach($myposts as $post) :  setup_postdata($post);
  16. ?>
  17.  
  18.       <div id="noticia">        
  19.         <span class="titulo"><?php the_title();?></span>
  20.  
  21.         <?php the_content();?>
  22.  
  23.  
  24.         <a href="<?php the_permalink(); ?>" class="PageleiaMais">Continue Lendo</a><!--link to read more-->
  25.  
  26.       </div><!--noticias-->
  27. <?php endforeach; ?>
  28.  
  29.         <div class="paginator"> <?php if(function_exists('wp_pagenavi')) {wp_pagenavi();} ?></div><!--paginator-->            
  30.     </div><!--page-->
  31.  
  32. </div><!--content-->
  33. <div class="clear"></div>
  34. <?php get_footer();?>
clone this paste RAW Paste Data