Ejemplo n.º 1
0
            ?>
					<?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_sections()) {
                    $content = pb_tag_sections(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-## -->


			</div><!-- #content -->
Ejemplo n.º 2
0
            ?>
				    <?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_sections()) {
                    $content = pb_tag_sections(apply_filters('the_content', get_the_content()));
                    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-## -->

			
				</div><!-- #content -->