Skip to content

Instantly share code, notes, and snippets.

Created August 5, 2014 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/dcf5b429611ad4f4da16 to your computer and use it in GitHub Desktop.
Save anonymous/dcf5b429611ad4f4da16 to your computer and use it in GitHub Desktop.
<?php $theme_options = get_option('gallerific_theme'); ?>
<? $cat_id = get_query_var('cat') ?>
<?php get_header(); ?>
<!-- CONTENT -->
<div id="content" class="noAG">
<h2><?php single_cat_title(); ?></h2>
<?php $temp_count = 0; if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<? // Blog Style Category ?>
<? if ($theme_options['cat_setting_'.$cat_id] == "blog") { ?>
<!-- Do Stuff -->
<? // Gallery Style Category ?>
<? } else { ?>
<?php if( get_post_meta($post->ID, "post_image_value", true) ) {
$temp_count++; ?>
<!-- Do Stuff -->
<? } ?>
<? } ?>
<?php endwhile; ?>
<div class="paging">
<div class="alignright"><?php next_posts_link('Next Page &raquo;') ?></div>
<div class="alignleft"><?php previous_posts_link('&laquo; Previous Page ') ?></div>
</div>
<div class="clear"></div>
<?php else : ?>
<h2><em><?php _e('Not Found'); ?></em></h2>
<p><em><?php _e('Sorry, but you are looking for something that isn&rsquo;t here.'); ?></em></p>
<?php endif; ?>
</div><!-- /CONTENT -->
<hr />
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment