Created
July 9, 2016 10:13
-
-
Save ianthompson/b5c7109d2b667c749cd2589cc165c18a to your computer and use it in GitHub Desktop.
Adjusted Beaver Builder single.php theme file to display custom posts types.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: Distributors | |
*/ | |
?> | |
<?php get_header(); ?> | |
<div class="container"> | |
<div class="row"> | |
<?php FLTheme::sidebar('left'); ?> | |
<div class="fl-content <?php FLTheme::content_class(); ?>"> | |
<?php if(have_posts()) : while(have_posts()) : the_post(); ?> | |
<?php get_template_part('content', 'distributors'); ?> | |
<?php endwhile; endif; ?> | |
</div> | |
<?php FLTheme::sidebar('right'); ?> | |
</div> | |
</div> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instructions: change line 16 : and insert the name of your-custom-post-type