Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 18th, 2012  |  syntax: None  |  size: 0.84 KB  |  hits: 10  |  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 query_posts('category_name=home-quote&posts_per_page=1'); ?>
  2. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  3.  
  4.   <?php include 'custom_variables.php'?>
  5.  
  6.   <div class="english">
  7.     <div class="home_quote">
  8.       <p>
  9.         <span class="quote_mark">"</span> <?php the_content_rss(); ?><span class="quote_mark">"</span>
  10.       </p>
  11.       <hr>
  12.     </div><!--close the home_quote div-->
  13.   </div><!--closes the english div-->
  14.  
  15.  
  16.   <div class="spanish">
  17.     <div class="home_quote">
  18.       <p>
  19.         <span class="quote_mark">"</span> <?php print_r($spanish[0]); ?><span class="quote_mark">"</span>
  20.       </p>
  21.       <hr>
  22.     </div><!--close the home_quote div-->
  23.   </div><!--closes the spanish div-->
  24.  
  25. <?php endwhile; else: ?>
  26.     <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  27.     <?php endif; ?>
  28.     <?php wp_reset_query(); ?>