Skip to content
Public Ticket #9021

Removing Guest Author bio section

Conversation thread

CalculatedTraveller replied

Customer Reply

Apologies - my mistake - I needed to make the change in both the author.php AND content-single.php.

All fixed now.

Thank you!

CalculatedTraveller replied

Customer Reply

No effect. That's ok. I'll work around it.

PenciDesign replied

Staff Reply

Hi,

Please try again with this code:

<?php if ( get_the_author_meta('display_name') != "Guest" && ! get_theme_mod( 'penci_post_author' ) ) : ?> 
<?php get_template_part( 'inc/templates/about_author' ); ?>
<?php endif; ?>

Best Regards,

PenciDesign

CalculatedTraveller replied

Customer Reply

Unfortunately that didn't work either....

PenciDesign replied

Staff Reply

Hi,

I think you can try with this:

<?php if ( get_the_author_meta('description') && ! get_theme_mod( 'penci_post_author' ) ) : ?> 
<?php get_template_part( 'inc/templates/about_author' ); ?> 
<?php endif; ?>

Best Regards,

PenciDesign

CalculatedTraveller started the conversation

Conversation Start

I had asked before to be able to remove blank avatar and bio field for guest authors and you said it wasn't possible so I altered the author.php to fix it. It no longer works. Can you offer any advice to make it work again?

<?php if ( get_the_author() != "Guest" && ! get_theme_mod( 'penci_post_author' ) ) : ?>

<?php get_template_part( 'inc/templates/about_author' ); ?>

<?php endif; ?>

Want to join this conversation or access attachments? Sign in first.