Skip to content

Instantly share code, notes, and snippets.

@SpencerCooley
Created March 29, 2012 13:26
Show Gist options
  • Select an option

  • Save SpencerCooley/2237430 to your computer and use it in GitHub Desktop.

Select an option

Save SpencerCooley/2237430 to your computer and use it in GitHub Desktop.
<?php query_posts('category_name=home-quote&posts_per_page=1'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php include 'custom_variables.php'?>
<div class="english">
<div class="home_quote">
<p>
<span class="quote_mark">"</span> <?php the_content_rss(); ?><span class="quote_mark">"</span>
</p>
<hr>
</div><!--close the home_quote div-->
</div><!--closes the english div-->
<div class="spanish">
<div class="home_quote">
<p>
<span class="quote_mark">"</span> <?php print_r($spanish[0]); ?><span class="quote_mark">"</span>
</p>
<hr>
</div><!--close the home_quote div-->
</div><!--closes the spanish div-->
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<?php wp_reset_query(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment