<?php
/* ------------------------------------------------------------------------ *
 * Seja Framework Version 2.16
 *
 * The loop that displays a page.
 *
 * The loop displays the posts and the post content.  See
 * http://codex.wordpress.org/The_Loop to understand it and
 * http://codex.wordpress.org/Template_Tags to understand
 * the tags used in it.
 *
 * This can be overridden in child themes with loop-page.php.
 *
 * @package WordPress
 * @subpackage Seja_Framework
 *
 * ------------------------------------------------------------------------ */
?>
<!-- start loop -->
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
					<?php seja_the_title( (get_post_meta($post->ID, 'seja_customfield_alternative_title', true) ) ); ?>
                    <?php /* h2 example 
					 seja_the_title( (get_post_meta($post->ID, 'seja_customfield_alternative_title', true) ), 'h2' ); 
					 */ ?>
					<div class="entry-content">
						<?php the_content(); ?>
						<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'seja_framework' ), 'after' => '</div>' ) ); ?>
						<?php edit_post_link( __( 'Edit', 'seja_framework' ), '<span class="edit-link">', '</span>' ); ?>
					</div><!-- .entry-content -->
				</div><!-- #post-## -->

				<?php comments_template( '', true ); ?>

<?php endwhile;   ?><!-- end of the loop. -->