WordPress.org

Support

Support » Plugins and Hacks » Custom Post Type UI » [Resolved] [Plugin: Custom Post Type UI] Link to custom taxonomy term archive

[Resolved] [Plugin: Custom Post Type UI] Link to custom taxonomy term archive

  • 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/

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: Custom Post Type UI] Link to custom taxonomy term archive’ is closed to new replies.
Skip to toolbar