Title: Permalink with custom post type
Last modified: August 21, 2016

---

# Permalink with custom post type

 *  [toojee](https://wordpress.org/support/users/toojee/)
 * (@toojee)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/permalink-with-custom-post-type/)
 * Hi!
 * I use the code to get a custom CPT-onomy Archive Page with the add_rewrite_rule
   and &cpt_onomy_archive=1 describe [here](http://wpdreamer.com/plugins/cpt-onomies/documentation/custom-archive-pages/)
   to get url like that [http://mywebsite.com/movies/actors/tom-hanks/](http://mywebsite.com/movies/actors/tom-hanks/)
 * Its working when I go it manually. But how can I do to get this url?
    Because
   with the get_terms I don’t have the custom post type “movies”… If I want to list
   the actors of steven-spielberg which function can I use to get a list like that
   with this permalink : – [http://mywebsite.com/movies/actors/tom-hanks/](http://mywebsite.com/movies/actors/tom-hanks/)–
   [http://mywebsite.com/movies/actors/tom-cruise/](http://mywebsite.com/movies/actors/tom-cruise/)–
   [http://mywebsite.com/movies/actors/leonardo-di-caprio/](http://mywebsite.com/movies/actors/leonardo-di-caprio/)
 * I will need something like that I think:
    $actors = get_terms( ‘actors’, ‘movies’,
   orderby=count&hide_empty=0′ ) $result = get_terms( cpt-onomy, custom-post-type,
   query )
 * Maybe there is already another solution
 * [http://wordpress.org/plugins/cpt-onomies/](http://wordpress.org/plugins/cpt-onomies/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [toojee](https://wordpress.org/support/users/toojee/)
 * (@toojee)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/permalink-with-custom-post-type/#post-4236467)
 * I wondering if the wordpress multisite for 1 site is the solution for this.
    
   With the example above, create each site for : – main with pages and blog – movies–
   tv-show – dvd – vod
 * With this no more issues with urls.
    My website needs to split data so it’s maybe
   a better solution… I don’t know…

Viewing 1 replies (of 1 total)

The topic ‘Permalink with custom post type’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cpt-onomies_f2f2f2.svg)
 * [CPT-onomies: Using Custom Post Types as Taxonomies](https://wordpress.org/plugins/cpt-onomies/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cpt-onomies/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cpt-onomies/)
 * [Active Topics](https://wordpress.org/support/plugin/cpt-onomies/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cpt-onomies/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cpt-onomies/reviews/)

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [toojee](https://wordpress.org/support/users/toojee/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/permalink-with-custom-post-type/#post-4236467)
 * Status: not resolved