Title: Any php coders here?
Last modified: August 18, 2016

---

# Any php coders here?

 *  [chad_coleman](https://wordpress.org/support/users/chad_coleman/)
 * (@chad_coleman)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/any-php-coders-here/)
 * I want to use the excerpt tag, for a subtitle under each post.
 * only, if i should choose not to use a subtitle/excerpt, i want nothing to appear,
   instead of the first paragraph.
 * Anyone here know the proper way to write out the If – Else tag for this?
 * much appreciated.

Viewing 13 replies - 1 through 13 (of 13 total)

 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/any-php-coders-here/#post-183430)
 * _I want to use the excerpt tag, for a subtitle under each post._
    a subtitle 
   under the content? under the title?
 * _only, if i should choose not to use a subtitle/excerpt, i want nothing to appear,
   instead of the first paragraph._
    If you should choose not to use a subtitle …
   when would that be?
 * …you want nothing to appear…nothing, nada, just a title and white blank space?
 * …instead of the first paragraph…so when you have subtitle, you want to have the
   first paragraph as well? and when no subtitle, no first paragraph?
 *  Thread Starter [chad_coleman](https://wordpress.org/support/users/chad_coleman/)
 * (@chad_coleman)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/any-php-coders-here/#post-183450)
 * sorry. I guess I didnt explain well.
 * but yes, the first two were correct.
 * When I fill in the excerpt, I want it to appear. When I leave the excerpt field
   blank, I want to not have the first paragraph show, like it does by default.
 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/any-php-coders-here/#post-183456)
 * _I want to not have the first paragraph show_
    By “first paragraph” you mean 
   fake excerpt?
 * `<?php the_title(); ?>
    <?php if( !empty( get_the_excerpt() ) ) { /* if I fill
   in the excerpt textarea */ the_excerpt(); // then display it } ?>;
 *  Thread Starter [chad_coleman](https://wordpress.org/support/users/chad_coleman/)
 * (@chad_coleman)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/any-php-coders-here/#post-183457)
 * hmm… that looks like it would be right..
 * but I get this on my page when I use it.
 * “Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or ‘$’ in/
   home/passth35/public_html/02/wp-content/themes/pta02/index.php on line 88”
 * Line 88 = “if( !empty( get_the_excerpt() ) ) {”
 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/any-php-coders-here/#post-183469)
 * `<?php
    if( !empty( $post->the_excerpt ) ) {  the_excerpt();  } ?>
 *  Thread Starter [chad_coleman](https://wordpress.org/support/users/chad_coleman/)
 * (@chad_coleman)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/any-php-coders-here/#post-183733)
 * that one doesn’t seem to work either 😐
 * the page shows fine, it just acts as if nothing is where the excerpt tag is…
 * any more ideas?
 * Thanks for the help you’ve been so far though.
 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/any-php-coders-here/#post-183759)
 * My bad, typo
    ` <?php if( !empty( $post->post_excerpt ) ) {  the_excerpt();  }?
   >
 *  [carthik](https://wordpress.org/support/users/carthik/)
 * (@carthik)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/any-php-coders-here/#post-183788)
 * Man walks into a bar and shouts, “Any beer lovers here?”
 * 🙂
 * Use better titles, Chad.
 *  Thread Starter [chad_coleman](https://wordpress.org/support/users/chad_coleman/)
 * (@chad_coleman)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/any-php-coders-here/#post-183804)
 * alphaoide! It works!!!
 * Yer the man! Thanks alot!
 *  Thread Starter [chad_coleman](https://wordpress.org/support/users/chad_coleman/)
 * (@chad_coleman)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/any-php-coders-here/#post-183817)
 * Ok, now try this one on for size alphaoide… or… tell me if it’s even possible…
 * On pop up comments, when you click the comment authors URL, it opens in that 
   same small sized window…
 * I was thinkin it’d be sweet to give it a target=_blank attribute.
 * How would I do that to this tag?
 * <?php comment_author_link() ?>
 *  [antigone](https://wordpress.org/support/users/antigone/)
 * (@antigone)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/any-php-coders-here/#post-183976)
 * After much foul language and pulling of the hair, I was able to fix the author
   comment problem by using the following code in my comments-popup,php file:
 * `<a href="<?php comment_author_url() ?>" target="new"><?php comment_author()?
   ></a>`
 * Crude. But it works. 🙂
 *  [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/any-php-coders-here/#post-183979)
 * Chad,
    [Posting an effective question](http://wordpress.org/support/topic.php?id=25473)
   in the forums.
 *  Thread Starter [chad_coleman](https://wordpress.org/support/users/chad_coleman/)
 * (@chad_coleman)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/any-php-coders-here/#post-183995)
 * understood. thanks.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Any php coders here?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 13 replies
 * 5 participants
 * Last reply from: [chad_coleman](https://wordpress.org/support/users/chad_coleman/)
 * Last activity: [21 years, 1 month ago](https://wordpress.org/support/topic/any-php-coders-here/#post-183995)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
