46 lines
1.7 KiB
PHP
46 lines
1.7 KiB
PHP
|
<?php get_header() ?>
|
||
|
|
||
|
<div class="st-main-grid st-four-oh-four">
|
||
|
<h1 class="st-four-oh-four__title">Oops, this page doesn't exist.</h1>
|
||
|
<p class="st-four-oh-four__subtitle">Check out some of our articles below.</p>
|
||
|
<section class="st-article-section-four-oh-four">
|
||
|
<?php
|
||
|
$post_section_two_args = array(
|
||
|
'showposts' => 12,
|
||
|
'offset' => 0,
|
||
|
'orderby' => 'post_date',
|
||
|
'order' => 'DESC',
|
||
|
'post_type' => 'post',
|
||
|
'post_status' => 'publish'
|
||
|
);
|
||
|
query_posts($post_section_two_args);
|
||
|
if (have_posts()):
|
||
|
while (have_posts()):
|
||
|
the_post();
|
||
|
$category = get_the_category()[0];
|
||
|
?>
|
||
|
|
||
|
<article class="st-article-section-wide-article">
|
||
|
<?php $category = get_the_category()[0]; ?>
|
||
|
<a href="<?php the_permalink(); ?>" class="st-article-section-wide-article__image-link">
|
||
|
<?php the_post_thumbnail(); ?>
|
||
|
</a>
|
||
|
<div class="st-article-section-wide-article__text-container">
|
||
|
<a href="<?php echo home_url($category->slug); ?>"
|
||
|
class="st-article-section-wide-article__category-link"><?php echo $category->name; ?></a>
|
||
|
<a class="st-article-section-wide-article__title" href="<?php the_permalink(); ?>">
|
||
|
<h3><?php the_title(); ?></h3>
|
||
|
</a>
|
||
|
<p class="st-article-section-wide-article__excerpt"><?php the_excerpt(); ?></p>
|
||
|
</div>
|
||
|
</a>
|
||
|
</article>
|
||
|
<?php
|
||
|
endwhile;
|
||
|
wp_reset_postdata();
|
||
|
endif;
|
||
|
?>
|
||
|
|
||
|
</section>
|
||
|
</div>
|
||
|
<?php get_footer() ?>
|