-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path404.php
More file actions
50 lines (43 loc) · 1.31 KB
/
404.php
File metadata and controls
50 lines (43 loc) · 1.31 KB
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
<?php get_header(); ?>
<div class="jumbotron">
<div class="container">
<h1><?php _e('Page Not Found'); ?></h1>
<p class="lead"><?php _e('The page you‘re looking for doesn‘t exist. Search our site, or view one of our site’s pages or a recent article below.'); ?></p>
<div class="row">
<div class="col-md-3">
<?php get_search_form(); ?>
</div>
</div>
</div> <!-- .container -->
</div> <!-- .jumbotron -->
<div class="container" id="main">
<div class="row">
<div class="col-md-8">
<div class="row">
<div class="col-md-6 posts">
<h3><?php _e('Recent Articles'); ?></h3>
<ul>
<?php
$args = array(
'numberposts' => '10',
'post_status' => 'publish'
);
$recent_posts = wp_get_recent_posts( $args );
foreach( $recent_posts as $recent ) {
echo '<li><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"] . '</a></li>';
}
?>
</ul>
</div> <!-- .posts -->
<div class="col-md-6 pages">
<h3><?php _e('Page Sitemap'); ?></h3>
<ul>
<?php wp_list_pages('title_li=&sort_column=menu_order'); ?>
</ul>
</div> <!-- .pages -->
</div> <!-- .row -->
</div> <!-- .col-md-8 -->
<?php get_sidebar(); ?>
</div> <!-- .row -->
</div><!-- .container -->
<?php get_footer(); ?>