Title: Get Variables From Post Permalink?
Last modified: August 19, 2016

---

# Get Variables From Post Permalink?

 *  [thebillevard](https://wordpress.org/support/users/thebillevard/)
 * (@thebillevard)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/get-variables-from-post-permalink/)
 * Hi,
 * say I have a post permalink that looks like /sue-hayday-and-ben-johnson/, or 
   even /susan-ann-henderson-and-bob-carr/.
 * Now, let’s say I want to get the names from the permalink that are to the left
   and right of -and-.
 * How can I do this? I know there should be a way of using php to filter out the
   characters and ‘and’ within the permalink, but I have yet to find the answer.
 * Hope someone can help!

The topic ‘Get Variables From Post Permalink?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [thebillevard](https://wordpress.org/support/users/thebillevard/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/get-variables-from-post-permalink/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
