-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
28 lines (25 loc) · 1.15 KB
/
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
27
28
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php if (has_post_thumbnail()) : ?>
<div class="hero-section mb-5">
<img src="<?php the_post_thumbnail_url('hero-image'); ?>" class="img-fluid w-100" alt="<?php the_title_attribute(); ?>">
</div>
<?php endif; ?>
<?php endwhile; endif; ?>
<main class="container mt-5" itemscope itemtype="https://schema.org/WebPage">
<div class="row">
<div class="col-md-12">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class(); ?> itemprop="mainEntity" itemscope itemtype="https://schema.org/CreativeWork">
<meta itemprop="name" content="<?php the_title_attribute(); ?>">
<div class="entry-content">
<?php the_content(); ?>
</div>
</div>
<?php endwhile; else : ?>
<p><?php esc_html_e('Sorry, no pages matched your criteria.', 'speedpress'); ?></p>
<?php endif; ?>
</div>
</div>
</main>
<?php get_footer(); ?>