WordPress.org

Forums

Custom Post Type UI
[resolved] Link to custom taxonomy term archive (2 posts)

  1. David M.
    Member
    Posted 3 years ago #

    I have set up a custom taxonomy with Custom Post Type UI.

    I want to display that taxonomy on single posts, with a link to the archive page for that term. I use this code:

    <?php the_terms( $post->ID, 'taxonomyname' ); ?>

    The link I get is: wordpress/?taxonomy=taxonomyname&term=taxonomyterm

    That link doesn't work. I have pretty permalinks, multisite, and the correct link for that archive is: wordpress/blog/taxonomyname/taxonomyterm/.

    I have tried different combinations in Custom Post Types UI for Rewrite and Rewrite Slug, to no effect.

    What could I do? Thanks.

    http://wordpress.org/extend/plugins/custom-post-type-ui/

  2. David M.
    Member
    Posted 3 years ago #

    I just found the problem. I was getting this link:

    wordpress/?taxonomy=taxonomyname&term=taxonomyterm

    But the taxonomy was actually registered as "Taxonomyname". With a capital letter.

    I changed the definition of the taxonomy, wrote its name without capital letters, flushed the pernmalink structure a couple of times, and it's working now.

    I think that it should be advised somewhere never to use any capitals in the name field of the custom taxonomy.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Type UI
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic