nerd4hire
7/15/2014 - 4:13 PM

Custom post type conditional ( Will pull all custom post types)

Custom post type conditional ( Will pull all custom post types)

	<?php if( ! is_singular( array('page', 'attachment', 'post') ) ){?>
		<h3><a href="<?php the_permalink(); ?>"><?php the_field('short_name'); ?></a></h3>
		<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('product-thumb'); ?></a>
		<a href="<?php the_field('pdf') ?>" class="spec-link" title="Download Spec Sheet">
		Spec Sheet</a>
		<h4>Key Features</h4>
		<?php if( have_rows('short_descriptions') ): ?>
			<ul>
				<?php while( have_rows('short_descriptions') ): the_row(); ?>
					<li>
						<?php the_sub_field('description'); ?>
					</li>
				<?php endwhile; ?>
			</ul>
		<?php endif; wp_reset_query();?>
		<?php } else { ?>
			<section class="entry-content">
				<?php the_excerpt( '<span class="read-more">' . __( 'Read more &raquo;', 'bonestheme' ) . '</span>' ); ?>
			</section>
		<?php } ?>