New answers tagged slug
1
Found it:
global $post;
$author_id=$post->post_author;
the_author_meta('user_nicename', $author_id );
0
As you hinted in your question, you could use get_term_by() to return an object or array containing the term's id, then use it to update that term. Something like this should work:
$your_term = get_term_by( 'slug', 'your_slug', 'your_taxonomy' );
if ( false !== $your_term ) {
wp_update_term( $your_term->term_id, 'your_taxonomy', $args );
}
...
Top 50 recent answers are included
