Title: Hyperlinks
Last modified: August 22, 2016

---

# Hyperlinks

 *  Resolved [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/hyperlinks-15/)
 * This is my first time using CPT-onomies, and I might be in over my head!
 * I have two custom post types: ‘instructor’ and ‘unit’. I have made them into 
   CPT-onomies and associated them with each other. This works beautifully.
 * I also have a custom taxonomy: ‘course’. This acts like a category for the CPT‘
   unit’. That works fine too.
 * Here are my two questions.
 * 1. I would like to have the name of a unit instructor show on that unit’s post,
   and hyperlink back to the instructor’s own post. Adapting what I found from [this thread](https://wordpress.org/support/topic/display-custom-taxonomy-terms-for-cpt-onomy-on-a-single-post-page?replies=4),
   this is what I have so far:
 *     ```
       <?php
       global $cpt_onomy;
       $instructor_list = get_the_terms( $post->ID, 'instructor' );
       if ( $instructor_list && ! is_wp_error( $instructor_list ) ) {
           foreach ( $instructor_list as $term ) { ?>
           <span class="instructor">Instructor: <a href="<?php $term->name; ?>"><?php echo $term->name; ?></a></span><?php
       }
       }
       ?>
       ```
   
 * This works well, except for the hyperlink. I tried various adaptations of the
   hyperlink from the thread to which I linked, but I couldn’t get any of them to
   work.
 * Do you have any suggestions, please?
 * 2. I would like to have a list of all the instructors for each of the units within
   a course display on the course archive page (ideally, with each one hyperlinked
   too). Do you have any suggestion as to how I might achieve that?
 * [https://wordpress.org/plugins/cpt-onomies/](https://wordpress.org/plugins/cpt-onomies/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/hyperlinks-15/#post-5342622)
 * OK. Worked it out now!
 *  [Grey Man](https://wordpress.org/support/users/christopher-greenhough/)
 * (@christopher-greenhough)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/hyperlinks-15/#post-5342744)
 * Would you mind posting your solution if you have time? Nothing worse than visiting
   a forum and finding someone has solved their own problem but doesn’t explain 
   how : )
 *  Thread Starter [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/hyperlinks-15/#post-5342745)
 * > Nothing worse than visiting a forum and finding someone has solved their own
   > problem but doesn’t explain how
 * _Nothing_ worse?! Wow!
 * Anyway, this is what I have:
 *     ```
       <?php
       global $cpt_onomy;
       $instructor_list = get_the_terms( $post->ID, 'instructor' );
       if ( $instructor_list && ! is_wp_error( $instructor_list ) ) {
           foreach ( $instructor_list as $term ) { ?>
           <h4 class=instructor_list><span class="instructor">Instructor:</span> <a href="~/blog/instructor/<?php echo $term->slug; ?>"><?php echo $term->name; ?></a></h4><?php
       	}
       }
       ?>
       ```
   
 * I hope it helps!
 *  [Sogwap](https://wordpress.org/support/users/sogwap/)
 * (@sogwap)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/hyperlinks-15/#post-5342746)
 * >  Nothing worse?! Wow!
 * How about, Quite frustrating!
 * Most likely if you have an error/bug caused by a plugin or code you use, it will
   crop up again.
 * If you have figured out a solution why not share for the benefit of the community?
 *  Thread Starter [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/hyperlinks-15/#post-5342747)
 * In an active forum, I always do. (You can check easily.) In this case I wanted
   to see how active this forum is, because that helps me judge how useful and/or
   well-used the plugin is (and therefore how likely I am to get help if I continue
   to use it).
 * It’s taken three months to produce a response. So now I know.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Hyperlinks’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cpt-onomies_f2f2f2.svg)
 * [CPT-onomies: Using Custom Post Types as Taxonomies](https://wordpress.org/plugins/cpt-onomies/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cpt-onomies/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cpt-onomies/)
 * [Active Topics](https://wordpress.org/support/plugin/cpt-onomies/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cpt-onomies/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cpt-onomies/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [KTS915](https://wordpress.org/support/users/kts915/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/hyperlinks-15/#post-5342747)
 * Status: resolved