Title: Make a code appear only for posts dated 2007
Last modified: August 19, 2016

---

# Make a code appear only for posts dated 2007

 *  [sabinou](https://wordpress.org/support/users/sabinou/)
 * (@sabinou)
 * [17 years ago](https://wordpress.org/support/topic/make-a-code-appear-only-for-posts-dated-2007/)
 * Hello,
 * On my blog using cute permalinks with urls containing the date, I wonder if it
   is possible – honestly, I have no idea – to create a php code made to add a certain
   message to my html page only if the current post URL contains /2007/ ?
 * (The reason : a certain group of links I used a lot in 2007 are now pointing 
   to a malware website, their owner sold his domain to bad people. At the present
   time I made a small < table > warning message with explanations </ table > inserted
   on top of my blog header, but I’d like to make that message to be shown only 
   to people seeing a message dated 2007)
 * Do you think it could be done ?
    If you do, would you know how to do it, or know
   where it is explained ?
 * Thanks a LOT if you can help me, I’ll be grateful,
 * Best regards,
    Sabinou

The topic ‘Make a code appear only for posts dated 2007’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [sabinou](https://wordpress.org/support/users/sabinou/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/make-a-code-appear-only-for-posts-dated-2007/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
