Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2112871
Removing Guest Author bio section
Closed

Comments

  •  1
    CalculatedTraveller started the conversation

    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; ?>


  •  2,700
    PenciDesign replied

    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

  •  1
    CalculatedTraveller replied

    Unfortunately that didn't work either....

  •  2,700
    PenciDesign replied

    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

  •  1
    CalculatedTraveller replied

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

  •  1
    CalculatedTraveller replied

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

    All fixed now.

    Thank you!