y por último el php al que responen esa serie de páginas ( funciona como un template )
Código PHP:
<?php
get_header();
$gallery_id = (get_post_meta($post->ID, THEME_METABOX . 'gallery_id', true) == "") ? null : get_post_meta($post->ID, THEME_METABOX . 'gallery_id', true);
$gallery_columns = (get_post_meta($post->ID, THEME_METABOX . 'gallery_columns', true) == "") ? 3 : get_post_meta($post->ID, THEME_METABOX . 'gallery_columns', true);
$heading_text = (get_post_meta($post->ID, THEME_METABOX . "heading_text", true) == "") ? get_the_title() : get_post_meta($post->ID, THEME_METABOX . "heading_text", true);
?>
<!-- start mainWrapper -->
<div id="mainWrapper">
<h1 id="pageHeading"><?php echo $heading_text;?></h1>
<!-- start content -->
<div id="content">
<!--start single post-->
<div id="singlePost">
<!-- start post -->
<div <?php post_class("last"); ?>>
<?php
if (have_posts()) : while (have_posts()) : the_post();
$image_url_big = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full');
?>
<div class="postContent">
<?php //get_template_part('templates/entrymeta'); ?>
<?php
the_content();
?>
</div>
<?php
endwhile; endif;
?>
<?php
if ( !post_password_required() ) :
comments_template();
endif;
?>
</div>
<!-- end post -->
</div>
<!-- end single post-->
</div>
<!-- end content -->
</div>
<!-- end mainWrapper -->
<?php get_template_part('templates/sidewrapper'); ?>
<?php get_footer(); ?>