Skip to content

Instantly share code, notes, and snippets.

@andornagy
Created March 7, 2022 19:11
Show Gist options
  • Save andornagy/2fd5042e6eca56165533ce65cda83e54 to your computer and use it in GitHub Desktop.
Save andornagy/2fd5042e6eca56165533ce65cda83e54 to your computer and use it in GitHub Desktop.
<?php get_header(); ?>
<div id="warp">
<div class="main container <?php echo get_option('acer_layout') ?>">
<?php if ( have_posts() ) { while ( have_posts() ) { the_post(); ?>
<!-- 6 column grid -->
<article id="post-<?php the_ID(); ?>" <?php post_class(array('entry', 'grid-6')); ?> <?php get_category_by_slug( 'slug' ) ?>>
<!-- spans 6 columns -->
<header class="grid-col-span-6 entry--header">
<h1 class="entry--title">
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
</a>
</h1>
<div class="entry--info">
By <address><?php the_author_posts_link(); ?></address> on <time pubdate datetime="<?php the_time('Y-m-d'); ?>" title="<?php the_time('F jS, Y'); ?>">on <?php the_time('F jS, Y'); ?></time>
</div>
</header>
<!-- spans 4 columns -->
<section class="grid-col-span-4 entry--content">
<?php acer_home_thumb(); ?>
<?php the_content(); ?>
<p class="postmetadata"> Filled under : <?php the_category(', '); ?> Tagged with : <?php the_tags(', '); ?> </p>
<?php wp_link_pages(); ?>
</section>
<!-- spans 2 columns -->
<?php get_sidebar(); ?>
</article><!-- ends .entry -->
<?php } } // ends wp loop ?>
<?php acer_related_posts() ?>
<?php comments_template(); ?>
</div><!-- ends .main -->
</div><!-- ends #wrap -->
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment