Wrong Permalink Returned
-
Hello,
I’m using CPT-onomies on a clients site I’m working on.
I have a CPT of member, which I’m then converting using CPT-onomies. However, the permalink returned is incorrect. It is returning /member/tax/name, rather than /member/name.I’m using the code below and wondered if I was missing something really obvious?
Thanks,
Stephglobal $cpt_onomy; $terms = wp_get_object_terms( $post->ID, 'member' ); if ( $terms && !is_wp_error( $terms ) ) { foreach ( $terms as $term ) { $job = '<a href="' . $cpt_onomy->get_term_link( $term, $term->taxonomy ) . '">' . $term->name . '</a>'; } }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Wrong Permalink Returned’ is closed to new replies.