You can do something like the following: $terms = get_the_terms( $post-> id, 'genre' ); // get an array of all the terms as objects. $terms_slugs = array(); foreach( $terms as $term ) { $terms_slugs[] = $term-> slug; // save the slugs in an array } More Solution apache - Wordpress multisite causing Error 101 (net::ERR_CONNECTION_RESET): Unknown error in WordPress Can't login to my admin area in WordPress redirect - How can I make internal anchor links work with WordPress's permalinks? in WordPress syntax highlighting - Best Live Writer plugins to post code snippets on WordPress? in WordPress theme development - Thesis -style Navigation in WordPress Reffered: https://wordpress.org/