Warning: count(): Parameter must be an array or an object that implements Countable in /home/chris493/public_html/wp-includes/media.php on line 1176
Add Custom Post Types and Taxonomy Terms to WordPress link selection – Christina Creative Design
Christina Creative Design

Add Custom Post Types and Taxonomy Terms to WordPress link selection

Warning: count(): Parameter must be an array or an object that implements Countable in /home/chris493/public_html/wp-includes/media.php on line 1176
alt="wp_link_sc" width="800" layout="responsive" height="804">

This is a Google AMP optimized post. View the original: Add Custom Post Types and Taxonomy Terms to WordPress link selection. Google AMP is new technology and this post may contain tutorials with content you can't see unless you view the original, mobile page.

When you add a link in the WordPress editor, the default is posts, pages, and single posts of custom post types. If you want to link to an archive page of a custom post type, or link to a taxonomy term (a category for example), then you would need to visit that page and grab the url from the browser bar and paste in the url (that’s one way of doing it).

With this code you add to your child theme functions file or a functions plugin, the links to CPT archives and terms are included. If you want to exclude a taxonomy, as I have done by excluding the ‘tag’ and ‘media_category’, you can do that too. See the gist below. Happy whipping WordPress into shape so you don’t have write or explain things.

Post Navigation

Next:

Previous:


Warning: count(): Parameter must be an array or an object that implements Countable in /home/chris493/public_html/wp-includes/media.php on line 1176

Warning: count(): Parameter must be an array or an object that implements Countable in /home/chris493/public_html/wp-includes/media.php on line 1176

Warning: count(): Parameter must be an array or an object that implements Countable in /home/chris493/public_html/wp-includes/media.php on line 1176

Warning: count(): Parameter must be an array or an object that implements Countable in /home/chris493/public_html/wp-includes/media.php on line 1176