Title: Add something at the posts
Last modified: August 18, 2016

---

# Add something at the posts

 *  Resolved [roxer82](https://wordpress.org/support/users/roxer82/)
 * (@roxer82)
 * [20 years ago](https://wordpress.org/support/topic/add-something-at-the-posts/)
 * I need to add something at the posts, it should show that when you open a post.
   I was trying to do this:
    <?php if(($post)) { echo “This is a post page<br>”;}?
   >
 * But it shows it everywhere (at the index, category…). What should I do?

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

 *  [Cypher](https://wordpress.org/support/users/cypher/)
 * (@cypher)
 * [20 years ago](https://wordpress.org/support/topic/add-something-at-the-posts/#post-381298)
 * Try..
 * `if (is_page()) {
    echo "This is a post page"; }
 * Regards
 *  Thread Starter [roxer82](https://wordpress.org/support/users/roxer82/)
 * (@roxer82)
 * [20 years ago](https://wordpress.org/support/topic/add-something-at-the-posts/#post-381311)
 * Thanks for your answer Cypher but seems to not be working
    I should put it in
   index.php, right?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years ago](https://wordpress.org/support/topic/add-something-at-the-posts/#post-381312)
 * Try to re-phrase your initial question.
    Where exactly do you want to show “something”?
   On the main page? On a [Page](http://codex.wordpress.org/Pages)? – for this see
   Cypher’s code On a single post view?
 *  Thread Starter [roxer82](https://wordpress.org/support/users/roxer82/)
 * (@roxer82)
 * [20 years ago](https://wordpress.org/support/topic/add-something-at-the-posts/#post-381314)
 * I want to show it on a single post view
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years ago](https://wordpress.org/support/topic/add-something-at-the-posts/#post-381317)
 * In that case you’ll need `if is_single`.
    Learn more here > [Conditional_Tags](http://codex.wordpress.org/Conditional_Tags).
 *  Thread Starter [roxer82](https://wordpress.org/support/users/roxer82/)
 * (@roxer82)
 * [20 years ago](https://wordpress.org/support/topic/add-something-at-the-posts/#post-381319)
 * Thanks Cypher and moshu 🙂
    it works now

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

The topic ‘Add something at the posts’ is closed to new replies.

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [roxer82](https://wordpress.org/support/users/roxer82/)
 * Last activity: [20 years ago](https://wordpress.org/support/topic/add-something-at-the-posts/#post-381319)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
