Last active
August 28, 2019 14:36
-
-
Save sabotawsh/464c0e691e7be27be161b487b0ce765c to your computer and use it in GitHub Desktop.
Removing the link from WordPress categories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NON CPT | |
<?php | |
foreach((get_the_category()) as $category) { | |
echo $category->cat_name . ' '; | |
} | |
?> | |
// CPT | |
<?php echo strip_tags( get_the_term_list( $post->ID, 'job_titles', '', ', ') ) ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment