Here’s the code:
<?php
/**
* Template Name: Customer stories
*/
?>
<?php $cusPageID = 50; ?>
<?php get_header(); ?>
<?php theme_builder(‘introduce’); ?>
<div id=”content”>
<?php theme_builder(‘breadcrumbs’); ?>
<div id=”col”>
<?php if (have_posts()) while (have_posts()) : the_post(); ?>
<?php $leId = $post->ID; ?>
<?php
$content = get_the_content();
$content = apply_filters(‘the_content’, $content);
$content = str_replace(‘]]>’, ‘]]>’, $content);
$temp = explode(‘[#stories]’, $content);
?>
<?php endwhile; ?>
<?php
// if not customer stories page
if($leId !== $cusPageID):
$_SESSION[‘post-needed’] = 1;
if(types_render_field(“customer-industry”, array())) {
$_SESSION[‘industry-type’] = types_render_field(“customer-industry”, array(‘raw’=>true));
}
endif;
?>
<?php
// if stories inserted in post
if($temp[1]) {
?>
<div class=”text clearfix no-space”><?php echo $temp[0]; ?></div>
<?php get_template_part(‘loop’,’customer-stories’); ?>
<div class=”text clearfix”><?php echo $temp[1]; ?></div>
<?php
// else stories at the end
} else {
?>
<div class=”text clearfix no-space”>
<?php echo $temp[0]; ?>
</div>
<?php if($leId !== $cusPageID): ?>
<h3 class=”split”><?php _e(‘Customer stories’,’imago_theme’); ?></h3>
<?php endif; ?>
<?php get_template_part(‘loop’,’customer-stories’); ?>
<?php if($leId === $cusPageID):
theme_builder(‘pagination’);
endif; ?>
<?php } ?>
</div>
<!– / content –>
<div id=”side”>
<?php include_once ‘side.php’; ?>
</div>
<!– / sidebar –>
</div>
<!– / container –>
<?php get_footer(); ?>
***Where do I add your code to? Or is this just a plugin?