Skip to content

Instantly share code, notes, and snippets.

View georgestephanis's full-sized avatar

George Stephanis georgestephanis

View GitHub Profile
<?php
/**
* The base configuration for WordPress.
*
* This file has the following configurations:
* - MySQL settings
* - Authentication Unique Keys and Salts
* - Table Prefix
* - Secret Keys
* - WordPress Language

#Chestnut Risotto - Level 1 ##Cooking Recommendation


##Abstract This recipe produces a risotto that has been described as "yummy". Because of it's heavy dependency on chestnuts, it is seasonable for December. Serves 4.

##Status of this Document This section describes the status of this recipe at the time of its publication. Other recipes may supersede this recipe, specially if it doesn't taste as good as it could.

##Conformance

<?php $tombstones = new WP_Query('category_name=tombstones&posts_per_page=-1&order=ASC'); ?>
<?php $counter = 0; ?>
<div class="slide">
<?php if ( $tombstones->have_posts() ) : while ( $tombstones->have_posts() ) : ?>
<?php if ( $counter && ( $counter % 3 == 0 ) ) echo "</div><!-- /slide -->\r\n\r\n<div class='slide'>"; ?>
<?php $tombstones->the_post(); $counter++; ?>
<?php the_content(); ?>
<?php endwhile; endif;?>
@georgestephanis
georgestephanis / gist:3153223
Created July 20, 2012 21:05 — forked from nikibrown/gist:3152904
Add somethign before and after every group of 4 posts...
<?php $tombstones = new WP_Query('category_name=tombstones&posts_per_page=-1'); ?>
<?php $counter = 0; ?>
<?php echo '<div class="slide"><h1>Beginning</h1>'; ?>
<?php if( $tombstones->have_posts() ) : while ( $tombstones->have_posts() ) : ?>
<?php $tombstones->the_post(); $counter++; ?>
<?php if ($counter % 4 == 0) echo '<h1>Ending</h1></div><div class="slide"><h1>Beginning</h1>'; ?>
<?php the_content(); ?>
<?php endwhile; endif;?>