Skip to content

Commit 448d968

Browse files
EkhausLog1x
authored andcommitted
Change Author Nice Name to Display Name (#25)
Change @/author to return display name set by user in user administration instead of nicename.
1 parent feb23c6 commit 448d968

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Directives/WordPress.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@
209209

210210
'author' => function ($expression) {
211211
if (! empty($expression)) {
212-
return "<?= get_the_author_meta('user_nicename', {$expression}); ?>";
212+
return "<?= get_the_author_meta('display_name', {$expression}); ?>";
213213
}
214214

215-
return "<?= get_the_author_meta('user_nicename'); ?>";
215+
return "<?= get_the_author_meta('display_name'); ?>";
216216
},
217217

218218
'authorurl' => function ($expression) {

0 commit comments

Comments
 (0)