-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-playground-home.php
51 lines (47 loc) · 1.62 KB
/
page-playground-home.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* @package WordPress
* @subpackage Default_Theme
* Template Name: Playground Home
*/
get_header(); ?>
<main>
<?php get_template_part('components/content_components'); ?>
<div class="margin">
<div class="container">
<div class="row">
<div class="col-12">
<h1 class="mb-5"><?php the_title(); ?></h1>
<?php the_content(); ?>
<?php $args = array(
'post_type' => 'page',
'post_parent' => 100,
'orderby' => 'menu_order',
'order' => 'ASC',
'posts_per_page' => -1,
);
$query = new WP_Query( $args ); ?>
<?php if ( $query->have_posts() ) { ?>
<div class="row g-5">
<?php while ( $query->have_posts() ) { $query->the_post(); ?>
<div class="col-12 col-sm-6 col-lg-4 blog-post-block" itemscope="" itemtype="http://schema.org/BlogPosting">
<article class="entry">
<?php if ( has_post_thumbnail() ) { ?>
<div class="blog-featured-image-wrapper mb-4">
<div class="blog-featured-image" style="background-image:url('<?php echo get_the_post_thumbnail_url( null, 'full' ); ?>');">
<a href="<?php the_permalink() ?>" aria-label="<?php the_title(); ?>"></a>
</div>
</div>
<?php } ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>" itemprop="url"><span itemprop="name headline"><?php the_title(); ?></span></a></h2>
</article>
</div>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</main>
<?php get_footer(); ?>