Title: Using post slug name to access posts?
Last modified: August 18, 2016

---

# Using post slug name to access posts?

 *  [FireMotion](https://wordpress.org/support/users/firemotion/)
 * (@firemotion)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/using-post-slug-name-to-access-posts/)
 * I want to access posts by their post name, e.g.:
    * index.php?p=post-slug-name(
   or using any other variable than p)
 * Instead of using the post ID:
    * index.php?p=14
 * But I don’t want to use the permalink features:
    * index.php/post-slug-name; 
   or: * blog/post-slug-name
 * So what I’m wondering is: can this be done already, or would I need to modify
   the code?

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

 *  [Ryan Boren](https://wordpress.org/support/users/ryan/)
 * (@ryan)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/using-post-slug-name-to-access-posts/#post-142545)
 * You’ll have to change get_permalink() to return ?name=post-name instead of ?p
   =#. In 1.5, plugins can hook into the ‘post_link’ filter allowing you to change
   the link without needing to edit any WP core files.
 *  Thread Starter [FireMotion](https://wordpress.org/support/users/firemotion/)
 * (@firemotion)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/using-post-slug-name-to-access-posts/#post-142554)
 * Actually, I couldn’t find anywhere that “name” was used to identify posts by 
   their post_name/post slug title. So your information is already enough :). The
   reason for this is that I want to use WP partly as a content manager for (semi-)
   static pages.
 * Anyway, thanks rboren!
 *  [Tamer](https://wordpress.org/support/users/bindume/)
 * (@bindume)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/using-post-slug-name-to-access-posts/#post-143293)
 * Anyone did it?
 *  [Tamer](https://wordpress.org/support/users/bindume/)
 * (@bindume)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/using-post-slug-name-to-access-posts/#post-143294)
 * [http://wordpress.org/development/?name=wordpress-on-yahoo](http://wordpress.org/development/?name=wordpress-on-yahoo)
   like this.. it’s realy beutifull =)
 *  [jimmywhofan](https://wordpress.org/support/users/jimmywhofan/)
 * (@jimmywhofan)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/using-post-slug-name-to-access-posts/#post-143295)
 * This may be a dumb question, but how to do you post a new question? I cant find
   it anywhere? It has to do with the “Links” section that is now showing up in 
   my theme. Thanks.
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/using-post-slug-name-to-access-posts/#post-143296)
 * On the main support forum page, scroll down to the bottom; you’ll see a list 
   of fora. Click on the forum title which most closely matches the subject of your
   question. Once that forum loads, scroll down again to the bottom, where you will
   find an input form.
 * This presupposes you have done searches to make sure your topic has not previously
   been discussed ad infinitum ad nauseam of course.
 *  [Tamer](https://wordpress.org/support/users/bindume/)
 * (@bindume)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/using-post-slug-name-to-access-posts/#post-143297)
 * i can’t found it.. can you help me please.

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

The topic ‘Using post slug name to access posts?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 5 participants
 * Last reply from: [Tamer](https://wordpress.org/support/users/bindume/)
 * Last activity: [20 years, 4 months ago](https://wordpress.org/support/topic/using-post-slug-name-to-access-posts/#post-143297)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
