Signature On Posts…Exclude on Guest Posts

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

This topic is: not resolved

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  Susan 1 year, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6582

    Susan
    Participant
    Post count: 2

    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 :P

    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!

     

    #6592

    Ozzy
    Participant
    Post count: 210

    try something like this:

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


    • This reply was modified 1 year, 3 months ago by  Ozzy.
    • This reply was modified 1 year, 3 months ago by  Ozzy.
    #8089

    Susan
    Participant
    Post count: 2

    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!

     

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.