Title: function to generate permalink
Last modified: August 19, 2016

---

# function to generate permalink

 *  [wesg](https://wordpress.org/support/users/wesg/)
 * (@wesg)
 * [17 years ago](https://wordpress.org/support/topic/function-to-generate-permalink/)
 * I’m working on making scheduled posts publish properly, and I need to add the
   page slug to the GUID field in the database. Is there a WP function that can 
   take a page name and output the page slug based on the permalink structure?
 * Also, any suggestions for making sure the posts are properly published?

The topic ‘function to generate permalink’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [wesg](https://wordpress.org/support/users/wesg/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/function-to-generate-permalink/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
