Change author field to use custom author field
-
Hello –
I’m using a custom author field (following instructions from https://www.wpbeginner.com/wp-tutorials/how-to-rewrite-guest-author-name-with-custom-fields-in-wordpress/ and I’m wondering how to make that field be used on the category post list. I tried a couple edits to:
<span class=”wp-cpl-sc-author”><?php echo __(‘ – By ‘, $trans) . ‘post_author) . ‘”>’ . get_the_author_meta(‘display_name’, $post->post_author) . ‘ ‘; ?></span>
(like using “the_author” in place of “post_author”) but none seemed to work. Anyone know how to do this? Thanks!
- The topic ‘Change author field to use custom author field’ is closed to new replies.