Skip to content

Instantly share code, notes, and snippets.

@ianthompson
Created July 9, 2016 10:13
Show Gist options
  • Save ianthompson/b5c7109d2b667c749cd2589cc165c18a to your computer and use it in GitHub Desktop.
Save ianthompson/b5c7109d2b667c749cd2589cc165c18a to your computer and use it in GitHub Desktop.
Adjusted Beaver Builder single.php theme file to display custom posts types.
<?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(); ?>
@ianthompson
Copy link
Author

Instructions: change line 16 : and insert the name of your-custom-post-type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment