WordPress.org

Support

Support » Plugins and Hacks » get_term_link not working with permalinks set to post name

get_term_link not working with permalinks set to post name

  • Hi. I have a custom taxonomy in my site, and I have a template file to display the taxonomy called taxonomy-{taxonomy-name}.php

    Anyway, I wanted to put a link to that page on my front page. I found that if I use the function get_term_link() it will give me a link.

    But this only works if the permalinks are on their default setting. It doesn’t go to the page if the permalinks are set to post name, for example.

    Can this be fixed?

    (this isn’t the first time I’ve had trouble getting wordpress to go to a template file when the permalinks are set to something besides default)

Viewing 1 replies (of 1 total)
  • same problem i faced. and i got solution that you should have a file taxonomy-{taxonomy-name}-{taxonomy-term}.php…

Viewing 1 replies (of 1 total)
  • The topic ‘get_term_link not working with permalinks set to post name’ is closed to new replies.