Skip to content

Instantly share code, notes, and snippets.

@jazzsequence
Last active September 4, 2018 11:14
Show Gist options
  • Save jazzsequence/5415007 to your computer and use it in GitHub Desktop.
Save jazzsequence/5415007 to your computer and use it in GitHub Desktop.
Get taxonomy links in WordPress for a custom post type and custom taxonomy, similar to get_the_category_list() or get_the_term_list() but is a bit smarter about separators.
@subhasishnath45
Copy link

subhasishnath45 commented Sep 4, 2018

Can you please show the template of the page where <a href="' . get_term_link( $term->slug, 'custom_taxonomy' ) . '"> </a> will redirect me ???
Because clicking the permalink says: "No page found".
Even though I have used: taxonomy-{taxonomy}-{term}.php format to create specific template for that taxonomy and term

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment