Archived topic
Author shown dispite disableing the checkbox in the Customizer
10 replies · Started by Phuc on October 16, 2020
Hi,
I've set my blogposts to NOT show the Author. After updating to the recent version, the Author is visible. On Archive and Detail Pages. No matter if I check or uncheck to show the Author in the Customizor.
Please fix that.
Hi there,
can you share a link to your site so we can see the issue?
Hi there,
Is your site using any custom functions/filters? If so, any of them targeting the post meta/author?
I don't think so. It used to work before I updated to the recent generatepress theme.
Never mind, found the Problem.
I've added following in my child theme.
add_filter( 'generate_post_author','tu_autho_link' );
function tu_autho_link() {
return 'false';
}
Ah, that'll do it. Glad you found the issue :)
No no, adding the code didn't solve the problem. I had to remove that part, which makes no sense to me.
That code removes the author regardless of your Customizer settings.
Removing it will allow the Customizer setting to work.
Yes, it should have removed the author regardless of the settings. It used to work before an update. After the update the author was showing while the code was still active. That's what I'm trying to say.
So I had to remove the code that worked before the update and then set hide author in the customizer.
We did change some post meta functionality in 3.0 to allow us better control for a future Customizer option. Glad it's working now :)