Custom theme giving over 700 page not found errors
-
Hey guys,
I’m using a custom theme at https://www.manishpandey.com but there’s some problem as I’m getting over 700 page not found 404 errors.
header.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml"> <head> <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » <?php } ?> <?php wp_title(); ?></title> <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" /> <!-- compliance patch for microsoft browsers --> <!--[if lt IE 7]> <script src="/ie7/ie7-standard-p.js" type="text/javascript"> </script> <![endif]--> <?php wp_head(); ?> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-2709465-2']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'https://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </head> <body> <!-- header begin here --> <div class="header"> <div class="subheader"> <div class="logo-navi"> <div class="navigation"> <ul class="navigation-list"> <li class="navigation-list"> <a class="home-link"href="<?php echo get_option('home'); ?>">Home</a> </li> <li class="navigation-list"> <a class="about-link" href="<?php echo get_option('home'); ?>/about/">About</a> </li> <li class="navigation-list"> <a class="contact-link"href="<?php echo get_option('home'); ?>/contact/">Contact</a> </li> <div class="clear"></div> </ul> </div> <div class="logo"> <a href="<?php echo get_option('home'); ?>"><h1>Manish Pandey</h1></a> </div> <div class="clear"></div> </div>
index.php
<?php get_header(); ?> <div class="header-content"> <div class="header-content-left"> <?php query_posts('showposts=1&category_name=Headline'); ?> <?php while (have_posts()) : the_post(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"> <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php $values = get_post_custom_values("image"); echo $values[0]; ?>&w=285&h=285&zc=1&q=100" alt="<?php the_title(); ?>" class="left" width="285px" height="285px"/></a> <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <div class="author"><!-- <?php the_author() ?> | --><?php the_time('F j, Y'); ?> | <?php if(function_exists('the_views')) { the_views(); } ?></div> <p><?php the_excerpt( 'Continue..');?></p> <?php endwhile; ?> </div> <div class="header-content-right"> <?php query_posts("showposts=3&category_name=Featured"); $i = 1; ?> <?php while (have_posts()) : the_post(); ?> <?php $values = get_post_custom_values("Headline");?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"> <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php $values = get_post_custom_values("image"); echo $values[0]; ?>&w=140&h=90&zc=1&q=100" alt="<?php the_title(); ?>" class="left" width="140px" height="90px"/></a> <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <div class="clear"></div> <?php endwhile; ?> <?php wp_reset_query(); ?> </div> <div class="clear"></div> </div> <div class="header-bottom"> <div class="pre-article"> <div class="rss"> <h2>Building a Resource for Future SEO Experts. <a href="https://feeds.feedburner.com/manishpandey" >Rss feed</a></h2> </div> </div> </div> </div> <div class="clear"></div> </div> <!-- Header ends here --> <!--Main content begins here --> <div id="main-content"> <div class="left-content"> <div class="content"> <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=-94,-117&paged=$page&posts_per_page=5"); ?> <?php while (have_posts()) : the_post(); ?> <div class="content-top-border"> <div class="content-bottom-border"> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"> <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=<?php $values = get_post_custom_values("image"); echo $values[0]; ?>&w=200&h=120&zc=1&q=100" alt="<?php the_title(); ?>" class="left" width="200px" height="120px"/></a> <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <div class="author"><!-- <?php the_author() ?> | --><?php the_time('F j,y') ?> | <?php if(function_exists('the_views')) { the_views(); } ?> </div> <div id="read"> <ul> <li><a href="<?php the_permalink() ?>">Read more</a></li> <li><?php comments_popup_link('No Comment', 'One Comment', '% Comments');?></li> </ul> </div> <div class="clear"></div> </div> </div> <?php endwhile; ?> <div class="wp-navigation"> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?> <div class="right"><?php next_posts_link('Next Page »') ?></div> <div class="left"><?php previous_posts_link('« Previous Page') ?></div> <?php } ?> </div> </div> </div> <?php get_sidebar(); ?> <div class="clear"></div> </div> <!--Main content ends here --> <div class="clear"></div> <!-- footer begins here --> <?php get_footer(); ?>
Let me know if there’s anything else I need to give here. Any help would be highly appreciated.
Thanks,
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom theme giving over 700 page not found errors’ is closed to new replies.