Skip to content

Commit 1502d6e

Browse files
authored
Merge pull request #139 from nlemoine/fix-get-authors-term-field
Fix get author term field
2 parents 3df960b + c54b139 commit 1502d6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function get_author_ids( WP_Post $post ) : array {
3535
}
3636

3737
return array_map( function ( WP_Term $term ) : int {
38-
return intval( $term->name );
38+
return intval( $term->slug );
3939
}, $authors );
4040
}
4141

0 commit comments

Comments
 (0)