Skip to content

Instantly share code, notes, and snippets.

@whyisjake
Created March 26, 2013 19:49
Show Gist options
  • Save whyisjake/5248583 to your computer and use it in GitHub Desktop.
Save whyisjake/5248583 to your computer and use it in GitHub Desktop.
<?php
$id = get_queried_object_id();
$name = get_cat_name( $id );
?>
<div class="grey child">
<div class="container">
<div class="row">
<div class="span12">
<?php
make_carousel( array(
'cat' => $id,
'title' => $name . ' On the Blog',
'post_type' => 'post'
) );
?>
</div>
</div>
<div class="row">
<div class="span12">
<?php
make_carousel( array(
'cat' => $id,
'title' => $name . ' Projects',
'post_type' => 'projects'
) );
?>
</div>
</div>
<div class="row">
<div class="span12">
<?php
make_carousel( array(
'cat' => $id,
'title' => $name . ' Videos',
'post_type' => 'video'
) );
?>
</div>
</div>
<?php
if ( is_category( array( '157499811', '5094' ) ) ) { ?>
<div class="row">
<div class="span12">
<?php
make_carousel( array(
'cat' => $id,
'title' => $name . ' Reviews',
'post_type' => 'review'
) );
?>
</div>
</div>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment