WordPress.org

Ready to get started?Download WordPress

Forums

get_term_link not working with permalinks set to post name (2 posts)

  1. benthv
    Member
    Posted 1 year ago #

    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)

  2. johnpaul_86
    Member
    Posted 1 year ago #

    same problem i faced. and i got solution that you should have a file taxonomy-{taxonomy-name}-{taxonomy-term}.php...

Topic Closed

This topic has been closed to new replies.

About this Topic