Skip to content

Commit

Permalink
Fix get author term field
Browse files Browse the repository at this point in the history
The field used to map user ID is the slug (used elsewhere to make relevant tax queries)
  • Loading branch information
nlemoine committed Sep 23, 2023
1 parent bca9c79 commit ca0c76e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function get_author_ids( WP_Post $post ) : array {
}

return array_map( function ( WP_Term $term ) : int {
return intval( $term->name );
return intval( $term->slug );
}, $authors );
}

Expand Down

0 comments on commit ca0c76e

Please sign in to comment.