-
-
Hi,
When publishing a blog post I have set the author as myself. My name shows on the blog category page but on the actual blog post the author is set to Admin. I have correctly selected myself as the author of the posts in the CMS. The Admin doesn’t exist so it leads to a 404 error. How do I rectify this so the post shows my name as the author?
Thanks.
-
Hello,
This is strange. i tested this and there is no problem.
Please go to file includes/codeless_functions_blog.php, find this function:codeless_get_entry_meta_author()
Replace all code with this:/** * Generate Post Entry Meta Author * * @since 1.0.0 */ function codeless_get_entry_meta_author(){ $author_name = get_the_author(); // Sanitize to not show empty author on customize preview partial refresh if( empty( $author_name ) || is_customize_preview() ) $author_name = __( 'admin', 'handel' ); // Get the author name; wrap it in a link. $author = sprintf( /* translators: %s: post author */ __( '%s', 'handel' ), '<span class="author"><a href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . $author_name . '</a></span>' ); return $author; }
Please refresh posts and let us know.
Best regards!
-
Hi,
This doesn’t appear to have fixed the issue. I’ve refreshed and updated posts but I’m still seeing Admin as the author.
-
Hi Mihaila,
It appears to be working now. Not sure what I did in the end but it worked!
Thanks.
-
Great!
I am assigning this ticket as resolved.
Please open new ticket for future questions.Best regards!
-
You must be logged in to reply to this topic.