Title: &#8220;Not Found&#8221; w/Links
Last modified: August 19, 2016

---

# “Not Found” w/Links

 *  [securewebdev](https://wordpress.org/support/users/securewebdev/)
 * (@securewebdev)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/not-found-wlinks/)
 * Hey there,
    Im designing an exclusive wordpress theme modelled after ESPN’s design.
   Ive finished designing it but after I look at it and when I click on categories,
   the “Next Page” link, or search for something I get a “Not Found”. The Archives
   work but I do not know why the other pages do not function correctly.
 * The Code for the Search.php for example is as follows:
 * `<?php get_header(); ?>
    <div id=”left”> <?php query_posts($query_string. ‘showposts
   =5’); ?> <?php if(have_posts()) : ?><?php while(have_posts()) : the_post();?>
   <div id=”post” title=”post-<?php the_ID(); ?>”> <div id=”posttop”> <table> <tr
   > <td width=”415″ align=”left” id=”posted”>Posted at <?php the_time(); ?> <?php
   the_date(); ?> </td> <td width=”185″ align=”right”><?php the_author() ?></td>
   </tr> </table> </div> <div id=”postcontent”> <div id=”postitself”> <img id=”postimage”
   src=”<?php bloginfo(‘template_directory’); ?>/images/<?php $values = get_post_custom_values(“
   thumbnail_img”); echo $values[0]; if(!$values[0]){echo “nothumbnail.jpg”;} ?>”
   width=”100″ height=”100″ align=”left” /> <h3>” rel=”bookmark” title=”Permanent
   Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h3> <?php the_excerpt(
   __(‘(more…)’)); ?> </div> <div id=”b”></div> <div id=”postinfo”> Posted in <?
   php the_category(‘, ‘) ?> | <?php comments_popup_link(‘No Comments »’, ‘[1] Comment’,‘[%]
   Comments;’); ?><?php link_pages(‘**Pages:** ‘, ”, ‘number’); ?> <?php edit_post_link(‘
   | Edit’, ”, ”); ?> </div> </div>
 *  </div>
    <?php endwhile; ?> <div class=”navigation”> <?php posts_nav_link(); ?
   > </div> <?php else : ?> <div id=”post”> <h2><?php _e(‘Not Found’); ?></h2> </
   div> <?php endif; ?> </div> <?php get_sidebar(); ?> </div> <?php get_footer();?
   >
 * The Link is: [](http://exclusivethemes.securityforwebmasters.com/wespn/)
 * If any body could help me it would be greatly appreciated.
    Thanks – Khaled

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [sarahbarnard](https://wordpress.org/support/users/sarahbarnard/)
 * (@sarahbarnard)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/not-found-wlinks/#post-1028711)
 * That sounds like the problem I have today!
 * My blog isn’t finding any archives, is failing to search by category or by tags.
 * Help!
    Thanks, Sarah
 *  Thread Starter [securewebdev](https://wordpress.org/support/users/securewebdev/)
 * (@securewebdev)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/not-found-wlinks/#post-1028718)
 * i removed
 *     ```
       <?php
       query_posts($query_string. 'showposts=5');
       ?>
       ```
   
 * and it worked.
 * The only problem i have now is that on the homepage when i click “Next page >
   >” it says Not Found and in the url it says “paged=2” when i make it “page=2”
   it works.
 * how could i change that?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘“Not Found” w/Links’ is closed to new replies.

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [not-found](https://wordpress.org/support/topic-tag/not-found/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [securewebdev](https://wordpress.org/support/users/securewebdev/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/not-found-wlinks/#post-1028718)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
