Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Commit e228a2a

Browse files
committed
show homepage for all non-existant paths
1 parent d06310c commit e228a2a

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

index.php

+1-30
Original file line numberDiff line numberDiff line change
@@ -1,30 +1 @@
1-
<?php get_header(); ?>
2-
3-
<div class="main-container">
4-
5-
<?php
6-
7-
$projects = new WP_Query(array(
8-
'post_type' => 'project',
9-
));
10-
11-
if ($projects->have_posts()) {
12-
13-
while ($projects->have_posts()) {
14-
$projects->the_post(); ?>
15-
16-
<div class="post-item">
17-
18-
<h2 class="headline headline--medium headline--post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
19-
20-
</div>
21-
22-
<?php }
23-
24-
}
25-
?>
26-
27-
</div>
28-
29-
<?php get_footer(); ?>
30-
1+
<?php get_template_part( 'front-page' ); ?>

0 commit comments

Comments
 (0)