<?php

get_header();
?>
<!-- Header Ends Here -->
<?php 
$args = array('post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => '1', 'order' => 'DESC', 'orderby' => 'date', 'category__in' => '5');
$posts_query = new WP_Query($args);
?>
<!-- Content Begins Here -->
<!-- Main Content Section Begins Here -->
<div class="container">
	<div class="row">
		<div class="col-xs-12 margin-bottom-lg">
			<?php 
add_flexslider($posts_query->ID());
?>
		</div>
	</div>
</div>
<div class="container">
	<div class="row">
		<div class="col-xs-12 col-sm-8">
			<?php 
if ($posts_query->have_posts()) {
    ?>
			<!-- the loop -->
				<?php 
    while ($posts_query->have_posts()) {
        $posts_query->the_post();
        ?>
/*
Template Name: Artist Galleries
*/
?>

<?php 
get_header();
?>
<div class="content-container">
    <div class="content">
      <h1><?php 
the_title();
?>
</h1>
      <hr>
      <?php 
gallery_page_feed();
?>
      <div><?php 
add_flexslider();
?>
</div>
    </div>

<?php 
get_sidebar();
?>
</div>
<?php 
get_footer();
Example #3
0
<?php

get_header();
?>
		<!--begin main-inside-->
		<?php 
if (is_front_page()) {
    ?>
		<div id="full-content">

			<div id="front-page-content">

				<!--start flexslider-->
				<?php 
    echo add_flexslider();
    ?>
				<!--end flexslider-->

				<?php 
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>

					<div id="post-<?php 
            the_ID();
            ?>
">
						<?php 
            the_content('<p class="serif">More &raquo;</p>');
            ?>