daily pastebin goal
53%
SHARE
TWEET

Untitled

a guest Jan 21st, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php $quotes = new WP_Query('post_type=quotes&posts_per_page=1&orderby=rand' );
  2. if($quotes->have_posts()) : while($quotes->have_posts()) : $quotes->the_post(); ?>
  3.     <blockquote><?php the_content(); ?>
  4.         <p class="attribution">—<?php the_title(); ?></p>
  5.         <p class="location">—<?php the_location(); ?></p>
  6.     </blockquote>
  7. <?php endwhile; endif; ?>
RAW Paste Data
Top