Skip to content

Instantly share code, notes, and snippets.

@billrobbins
Created March 13, 2012 00:14
Show Gist options
  • Select an option

  • Save billrobbins/2025604 to your computer and use it in GitHub Desktop.

Select an option

Save billrobbins/2025604 to your computer and use it in GitHub Desktop.
404 For Bottega
<?php get_header(); ?>
<div id="page" class="clearfix">
<div id="content" class="page-left clearfix">
<h1><?php _e('Not Found', 'organizedthemes'); ?></h1>
<p><?php _e('We could not find the page you were looking for. You may be able to find it in the archives below', 'organizedthemes'); ?></p>
<h4><?php _e('Pages', 'organizedthemes'); ?></h4>
<ul>
<?php wp_list_pages('depth=1&sort_column=menu_order&title_li=' ); ?>
</ul>
<h4><?php _e('Categories', 'organizedthemes'); ?></h4>
<ul>
<?php wp_list_categories('title_li=&hierarchical=0&show_count=1') ?>
</ul>
<?php
$cats = get_categories();
foreach ($cats as $cat) {
query_posts('cat='.$cat->cat_ID);
?>
<h4><?php echo $cat->cat_name; ?></h4>
<ul>
<?php while (have_posts()) : the_post(); ?>
<li style="font-weight:normal !important;"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a> - Comments (<?php echo $post->comment_count ?>)</li>
<?php endwhile; ?>
</ul>
<?php } ?>
</div>
<?php get_sidebar( 'post' ); ?>
</div>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment