Title: get_permalink returns invalid string
Last modified: August 19, 2016

---

# get_permalink returns invalid string

 *  [jrodgers](https://wordpress.org/support/users/jrodgers/)
 * (@jrodgers)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/get_permalink-returns-invalid-string/)
 * when i use get_permalink(57); the return value is
 * [http://www.server.com/index.php/%post_name%/57](http://www.server.com/index.php/%post_name%/57)
 * my custom permalink is
    /index.php/%post_name%/%post_id% so it looks like the%
   post_id% is being resolved but %post_name% is not
 * may page links show as
    index.php/name-of-page

The topic ‘get_permalink returns invalid string’ is closed to new replies.

## Tags

 * [get_permalink](https://wordpress.org/support/topic-tag/get_permalink/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)
 * [post_name](https://wordpress.org/support/topic-tag/post_name/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [jrodgers](https://wordpress.org/support/users/jrodgers/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/get_permalink-returns-invalid-string/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
