Title: post /page slug
Last modified: August 18, 2016

---

# post /page slug

 *  [jamajamajaaama](https://wordpress.org/support/users/tipone/)
 * (@tipone)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/post-page-slug/)
 * How to get a current page(!!!) slug in template and a page slug from the URL 
   with human readable URIs?
    This: $extrapostdata = get_post(the_ID(), ARRAY_A);
   $slug = $extrapostdata[‘post_name’];
 * Works well on pages only, but when I open the Page which content is blog entries
   it shows the first entry of the blog.
    DAMN!!

Viewing 1 replies (of 1 total)

 *  Thread Starter [jamajamajaaama](https://wordpress.org/support/users/tipone/)
 * (@tipone)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/post-page-slug/#post-582978)
 * Anybody? Please!

Viewing 1 replies (of 1 total)

 The topic ‘post /page slug’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [jamajamajaaama](https://wordpress.org/support/users/tipone/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/post-page-slug/#post-582978)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
