-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
44 lines (38 loc) · 812 Bytes
/
index.php
File metadata and controls
44 lines (38 loc) · 812 Bytes
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
<?php
/**
* Default Template
*
* This is the default template for the theme. It is used when a more specific
* template can not be found to display the content.
*
* Learn More
*
* https://developer.wordpress.org/themes/basics/template-hierarchy/
*
**/
get_header();?>
<?php
//Content
if (have_posts()) {
//The Loop
while (have_posts()) {
the_post();
?>
<article id="post-<?php the_ID();?>" <?php post_class();?>>
<h1><?php the_title();?></h1>
<?php the_content();?>
</article>
<?php
}
//No Content
} else {
?>
<article id="not-found" <?php post_class();?>>
<h1>Not Found</h1>
<?php echo do_shortcode('[Waymark file_url="' . get_template_directory_uri() . '/assets/geo/404.geojson"]'); ?>
</article>
<?php
}
?>
<?php map_first_archive_pagination();?>
<?php get_footer();?>