Support » Themes and Templates » Wrong archive link when using the_terms

  • Resolved David M.


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

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

    It displays correctly the terms associated to that post. 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’m using a custom child theme of Twenty eleven.

    What could I do? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrong archive link when using the_terms’ is closed to new replies.