Created
April 27, 2017 13:41
-
-
Save aslamhindko/e9a9f50571bd63f6da3d4f3b9f260b25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: Inner Page | |
*/ | |
get_header(); | |
?> | |
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
<?php $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(),'full', true); ?> | |
<section class="innerpage"> | |
<img src="<?php echo $thumbnail[0]; ?>" alt="innerpage" class="img-responsive"> | |
<div class="container"> | |
<?php the_content();?> | |
</div> | |
</section> | |
<?php endwhile; ?> | |
<!-- post navigation --> | |
<?php else: ?> | |
<!-- no posts found --> | |
<?php endif; ?> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment