SHARE
TWEET

Untitled

a guest Jul 18th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.   define('WP_USE_THEMES', false);
  3.   require('blog/wp-load.php');
  4.   query_posts('showposts=4');
  5. ?>
  6. <?php while (have_posts()): the_post();
  7. ?>
  8.   <div style="margin-bottom:50px;">
  9.     <div style="display:inline-block; vertical-align:middle;">
  10. <?php the_post_thumbnail(array(100,100));
  11. ?>
  12.     </div>
  13.     <div style="display:inline-block; vertical-align:middle;"><h3 style="color:#24A675; text-transform: uppercase;">
  14. <?php the_title();
  15. ?></h3>
  16.         <?php the_excerpt();
  17.         ?>
  18.         <button type="button" class="btn btn-info"><a href= <?php the_permalink();
  19.         ?> style="color:white;">Leggi il post...</a></button>
  20.     </div>
  21.   </div>
  22. <?php endwhile;
  23. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top