• Hi there. I have my own Custom Post Type made like plug-in. It is also in my own custom template. I made then custom taxonomy for that custom post type called genre – like movie-genre. It works, but i can’t do one thing – make template for that taxonomy. When i click on some genre (comedy etc.) under the title of custom post, where it displays with link (automaticly) it takes me to my-site/movie_review_movie_genre/comedy and it look’s like single.php istead of taxonomy-movie_review_movie_genre.php wich i made. I don’t really know what i’m doing wrong, i also tried force it to use that template if it’s taxonomy, but it didn’t work. To short my whole coding i was fallowing this tutorial:

    https://goo.gl/eUnzO (both parts)

    I do exactly the same what is in there, but i don’t want to make an archive for movie-reviews, i want archive, where will be the loop of all posts in that exact taxonomy – so if i click on genre, comedy, it will take me to this page with all movies in that genre.

    I’ve tried just to make document with some loop and h1 Taxonomy to recognize it when i’m there – i just need to find proper name of the file. I’ve tride archive-(my_taxonomy).php, taxonomy-(my_taxonomy).php even single-(my_taxonomy).php – nothing works, it still takes me on single.php or something.

    My testing web is here:

    https://www.wp-test-2.jabbo.cz/filmove-recenze-2

    I can give here the coding, but it is really the same leke in the tutorial i’ve mentioned.

    EDIT: i know now where it takes me, when i click on some genre it takes me on 404.php file, so i even don’t have the proper link on that maybe. At my single-movie_reviews.php i have this code to call my custom tax:

    <strong>Genre: </strong>
                    <?php the_terms( $post->ID, 'movie_reviews_movie_genre' , '' ); ?><br />

    Maybe i’m missing something there?

  • The topic ‘Custom taxonomy template file – don't work’ is closed to new replies.