-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpage.php
executable file
·26 lines (23 loc) · 990 Bytes
/
page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php get_header(); ?>
<div class="custom-hero-image" style="background-image: url('<?php header_image(); ?>')">
<!-- <img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="" /> -->
</div>
<div class="main">
<div class="container">
<div class="content">
<?php // Start the loop ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php
$thumb_id = get_post_thumbnail_id();
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'full', true);
$thumb_url = $thumb_url_array[0];
?>
<div class="mainPost" style="background-image: url('<?php echo $thumb_url; ?>')">
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
</div>
<?php endwhile; // end the loop?>
</div> <!-- /,content -->
</div> <!-- /.container -->
</div> <!-- /.main -->
<?php get_footer(); ?>