Title: Beautify URL with query string
Last modified: August 21, 2016

---

# Beautify URL with query string

 *  [ARZCDR](https://wordpress.org/support/users/arzcdr/)
 * (@arzcdr)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/beautify-url-with-query-string/)
 * Hello,
 * I have a custom Archive page for a Custom Post Type (called “Story”) that has
   its own navigation using categories.
 * I use two levels of categories and therefore I use two query vars, the original‘
   cat’ and a custom query var ‘p_attr’ which is just to keep track of the current‘
   parent’ category that ‘cat’ belongs to.
 * Anyway, the URL’s look like this:
 * [http://mydomain/story/?cat=41&p_attr=3](http://mydomain/story/?cat=41&p_attr=3)
 * I am wondering how I can beautify such a URL so that the query vars appear as
   path elements in the URL with either the category numbers or better yet the category
   names. So the above could instead be:
 * [http://mydomain/story/](http://mydomain/story/){name of ‘p_attr’ category}/{
   name of ‘cat’ category}
 * Thanks in advance for any help with this.

The topic ‘Beautify URL with query string’ is closed to new replies.

## Tags

 * [query](https://wordpress.org/support/topic-tag/query/)
 * [string](https://wordpress.org/support/topic-tag/string/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [ARZCDR](https://wordpress.org/support/users/arzcdr/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/beautify-url-with-query-string/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
