Title: problems with the_permalink
Last modified: August 19, 2016

---

# problems with the_permalink

 *  [mondayblues](https://wordpress.org/support/users/mondayblues/)
 * (@mondayblues)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/problems-with-the_permalink/)
 * I’m terribly new with WordPress. I’m trying to modify the classic theme that 
   comes with the installation. It got the index page up and running but whenever
   I click on the link (the_permalink) the page doesn’t change instead it displays
   the full index page. However, the link shown already has the post id.
 * Below is my sample code.
 *     ```
       <div id = "latest">
       <?php query_posts("category_name=latest"); ?>
       <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
       <div id="storytitle">
       <div class="day">
       <strong class="month">
       <?php the_time('M') ?><br />
       </strong>
       <?php the_time('j') ?>
       </div>
       <div class="maintitle">
       <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
       <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
       </div>
       </div>
       <br /><br />
       </div>
       <div class="storycontent">
       <div class="thumb"><img src="<?php echo get_post_meta($post->ID, "Thumbnail", true);?>" height="110" width="110"/></div>
       <?php the_excerpt(); ?>
       </div>
       <hr>
       <?php comments_template(); // Get wp-comments.php template ?>
       <?php endwhile; else: ?>
       <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
       <?php endif; ?>
       </div>
       ```
   

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

 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/problems-with-the_permalink/#post-1065591)
 * Out of curiosity, if you change your [Permalinks](http://codex.wordpress.org/Permalinks)
   to the Default, does the link work?
 * Do other links (categories, pages, etc) work with non-Default Permalinks?
 *  [dakosha](https://wordpress.org/support/users/dakosha/)
 * (@dakosha)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/problems-with-the_permalink/#post-1065979)
 * Hi, I’m having the same problem.
 * I’m using custom permalinks: /%postname%
    And when viewing a single post, the
   post title link is not like: [http://www.something.com/?p=123](http://www.something.com/?p=123),
   but it is just: [http://www.something.com/](http://www.something.com/)
 * I have checked it with default premalink setting, and it worked fine, but with
   custom I have this peoblem.
 * Please help.
 * D.
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/problems-with-the_permalink/#post-1065980)
 * Dakosha
 * linux or windows server?
    can you supply a link?

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

The topic ‘problems with the_permalink’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 4 participants
 * Last reply from: [Samuel B](https://wordpress.org/support/users/samboll/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/problems-with-the_permalink/#post-1065980)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
