• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Signature On Posts…Exclude on Guest Posts

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Signature On Posts…Exclude on Guest Posts

This topic is: not resolved

Tagged: signature

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 1 month ago by Susan.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 20, 2012 at 10:58 pm #6582
    Susan
    Member

    Hi,

    I actually just posted this question on Lindsey's website (PrettyDarnCute.com) but I couldn't show the php code. I hope it shows here when I post 😛

    I have a client who has come to me wanting me to add a signature under her posts, but not under her guest posts.

    She is using this tag to add a signature under all posts on WordPress (her theme is not Genesis):

    <?php if ( is_singular() ) { ?>

    Signature text is here…

    <?php } ?>

    It works on the site at present, but she would like to exclude that signature from showing up on her guest posts…which is understandable.

    She has already tried this for example:

    <?php if ( is_author( 'Author Name' ) ) { ?>

    Signature text is here…

    <?php } ?>

    …but then the signature doesn’t show at all on her own posts.

    Do you know what the line of code would be? I hope someone does...because I don't!

     

    December 21, 2012 at 1:47 am #6592
    Ozzy
    Member

    try something like this:

    <?php if ( is_singular() && is_author('Author Name') ) {?>


    Ozzy Rodriguez | Twitter | Google+

    December 28, 2012 at 11:16 pm #8089
    Susan
    Member

    Hi Ozzy,

    Thank you for responding! I was away...I hope you had a great Christmas!

    I just tried the code and it doesn't do what my client wants.

    Any other suggestions? If not...thanks for helping me anyway!

     

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble