Avant garde development for WordPress

Get started

Scroll down to learn more


From the official WordPress documentation

<!-- Start the Loop. -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

   <!-- Test if the current post is in category 3. -->
   <!-- If it is, the div box is given the CSS class "post-cat-three". -->
   <!-- Otherwise, the div box is given the CSS class "post". -->

   <?php if ( in_category( '3' ) ) : ?>
       <div class="post-cat-three">
   <?php else : ?>
       <div class="post">
   <?php endif; ?>

   <!-- Display the Title as a link to the Post's permalink. -->

   <h2><a href="<?php the_permalink(); ?>" title="Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

   <!-- Display the date (November 16th, 2009 format) and a link to other posts by this posts author. -->

   <small><?php the_time('F jS, Y'); ?> by <?php the_author_posts_link(); ?></small>

   <!-- Display the Post's content in a div box. -->

   <div class="entry">
       <?php the_content(); ?>

   <!-- Display a comma separated list of the Post's Categories. -->

   <p class="postmetadata"><?php _e( 'Posted in' ); ?> <?php the_category( ', ' ); ?></p>
   </div> <!-- closes the first div box -->

   <!-- Stop The Loop (but note the "else:" - see next line). -->

<?php endwhile; else : ?>

   <!-- The very first "if" tested to see if there were any Posts to -->
   <!-- display.  This "else" part tells what do if there weren't any. -->
   <p><?php esc_html_e( 'Sorry, no posts matched your criteria.' ); ?></p>

   <!-- REALLY stop The Loop. -->
<?php endif; ?>


<div create-for-each="post in posts" add-category-class="(post.categories())">

        <a href="(post.url())" title="Link to (post.url())">(post.title)</a>

    <small>(post.date()) by (post.author())</small>

    <div class="entry">

    <p class="postmetadata">Posted In: (post.categories().asReadableList())</p>
<p show-if="(posts.wereNotFound())">Sorry, no posts matched your criteria.</p>


A reading experience

Stratum has been designed with readability over writability in mind, Stratum makes you write readable, maintainable and extendible applications and websites.


Stratum provides a readable, fully-featured routing system to handle both native WordPress and HTTP requests. It comes with a validation layer for a cleaner architecture.

Dedicated validation Layer

4 Response types



Powerful, full-featured, low and high level APIs for locating and managing data from any storage system and the logic associated with it. MYSQL implementations built in.

(object) $posts = Posts::with(1)->orMoreComments()->find();

(object) $posts = Posts::by()->users()


Super clean, maintainable and reusable views. Building HTML documents has never been so fun.

    <ul class="menu">
        <li create-for-each="menuItem in menu">
            <a href="(menuItem:url)">(menuItem:name)</a>


Stratum's templating engine is compiled to native PHP for a faster execution. Performance optimization features are also available to help dealing with unnecessary bottlenecks.

Open Source

Stratum is an open source project released under the MIT license available on GitHub.

Get started