CPT-onomies: Using Custom Post Types as Taxonomies
Permalink with custom post type (2 posts)

  1. toojee
    Posted 1 year ago #


    I use the code to get a custom CPT-onomy Archive Page with the add_rewrite_rule and &cpt_onomy_archive=1 describe here to get url like that 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-cruise/
    - 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


  2. toojee
    Posted 1 year ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic