WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Taxonomy Archive Not Displaying (4 posts)

  1. the.green.timtam
    Member
    Posted 1 year ago #

    I'm currently developing a theme for a WordPress Multisite installation. I'm developing it on a localhost.

    I've created a custom post type called "films" and a custom taxonomy for that post type called "roles".

    I've created a "taxonomy-roles.php" file, and a film with the role of "Director", but when I go to "http://localhost/multisite/roles/director/", it loads the "index.php" template instead of the "taxonomy-roles.php" template.

    Is there something I am missing?

  2. curtismchale
    Member
    Posted 1 year ago #

    Have you flushed the rewrite rules? I'd also wonder if those names have a conflict with the built in WordPress Roles. If the registered taxonomy name is 'role' that might be it. I'd change it to 'something_role' and see if the issue remains.

  3. the.green.timtam
    Member
    Posted 1 year ago #

    Thank you so much. I changed the taxonomy name and slug to "crew-roles" and everything now works perfectly.

  4. curtismchale
    Member
    Posted 1 year ago #

    Oh, don't use a - in the name. That's just going to cause problems. Use an underscore _ or all one word.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.