Custom Author Code not working
-
Hi! I love this plugin! I was trying to use the code you provided so that the guest posts author matches the actual author, however the code you have specified is not in my php. The only code I have is:
$author = get_current_user_id();Could you tell me what code I’d need to change it to? When I replaced it with:
!empty(get_post_custom_values(‘author’, get_the_ID())[0]) ? get_post_custom_values(‘author’, get_the_ID())[0] : get_the_author()I got a fatal error message and my plugin was rendered inactive : (
Thank you for your help!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Author Code not working’ is closed to new replies.