} ?> <?php if ($chap_author = get_post_meta($post->ID, 'pb_section_author', true)) { ?> <h2 class="chapter_author"><?php echo $chap_author; ?> </h2> <?php } ?> <?php if (get_post_type($post->ID) !== 'part') { if (pb_should_parse_subsections()) { $content = pb_tag_subsections(apply_filters('the_content', get_the_content()), $post->ID); echo $content; } else { $content = apply_filters('the_content', get_the_content()); echo $content; } } else { echo apply_filters('the_content', get_post_meta($post->ID, 'pb_part_content', true)); } ?> </div><!-- .entry-content --> </div><!-- #post-## -->
/** * Alias for pb_should_parse_subsections. * * @return boolean */ function pb_should_parse_sections() { return pb_should_parse_subsections(); }