Title: Modifying &#8220;Recent Posts&#8221; code
Last modified: August 19, 2016

---

# Modifying “Recent Posts” code

 *  [netiad](https://wordpress.org/support/users/netiad/)
 * (@netiad)
 * [18 years ago](https://wordpress.org/support/topic/modifying-recent-posts-code/)
 * The code for my “Recent Posts” is:
 *     ```
       <?php get_archives('postbypost',tiga_recentPostsCnt(),'custom','
       <li>','</li>
       '); ?>
       ```
   
 * Now I have another Box called “Games”. Every time I make a post that has “Play….”
   in the title I would like my “Games” box to have “….” listed in it.
 * **example: **I create a post with the title “Play Chess”. Then let’s say I make
   a post called “Play Asteroids”
 * Now I would like my sidebar “Games” box to have
 * ——–
    Games ——– Asteroids Chess

The topic ‘Modifying “Recent Posts” code’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [netiad](https://wordpress.org/support/users/netiad/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/modifying-recent-posts-code/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
