コード例 #1
0
        $pod_name = pods_v('specific_type', $pod_name, false, true);
    }
    while (have_posts()) {
        the_post();
        //test if we have a valid Pods object.
        if ($pods and $pod_name) {
            //Output template of the same name as Pod, if such a template exists.
            //if it doesn't output template part
            $temp = $pods->template($pod_name);
            if (isset($temp)) {
                echo $temp;
            } else {
                pods_s_get_template_part('content', pods_s_part_by_post_type(), compact(array('pods')));
            }
        } else {
            pods_s_get_template_part('content', pods_s_part_by_post_type());
        }
        pods_s_post_nav();
        ?>

				<?php 
        // If comments are open or we have at least one comment, load up the comment template
        if (comments_open() || '0' != get_comments_number()) {
            comments_template();
        }
        ?>

		<?php 
    }
    // end of the loop.
}
コード例 #2
0
        } else {
            pods_s_get_template_part('content', pods_s_part_by_post_type());
        }
        ?>

			<?php 
    }
    ?>

			<?php 
    pods_s_paging_nav();
    ?>

		<?php 
} else {
    ?>

			<?php 
    pods_s_get_template_part('content', 'none');
    ?>

		<?php 
}
?>

		</main><!-- #main -->
	</div><!-- #primary -->

<?php 
pods_s_get_sidebar();
pods_s_get_footer();