Title: post-type custom permalink rewrite
Last modified: August 20, 2016

---

# post-type custom permalink rewrite

 *  [John Mido](https://wordpress.org/support/users/h3o-co/)
 * (@h3o-co)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/post-type-custom-permalink-rewrite/)
 * i want to edit post type link to be like this:
 * `site.com/news/entry-post-title`
 * witch “entry-” as static prefix before post title of posts of the post type “
   news”
 * i tried to use this:
 *     ```
       function wptuts_custom_tags() {
               add_rewrite_rule("news/entry-([^/]+)(/[0-9]+)?", 'index.php?post_type=news&news=$matches[1]&name=$matches[2]','top');
           }
           add_action('init','wptuts_custom_tags');
       ```
   
 * it works when i add “entry-” to links manually, but the perma link doesn’t echo
   the new structure , it echo the basic structure `site.com/news/post-title`
 * how to make permalink echo the desired structure?
 * (note: posttype registered by plugin “types”)
 * Thanks
 * _[ Please do not bump, that’s [not permitted here](http://codex.wordpress.org/Forum_Welcome#No_Bumping).]_

The topic ‘post-type custom permalink rewrite’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [John Mido](https://wordpress.org/support/users/h3o-co/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/post-type-custom-permalink-rewrite/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
