Title: adding custom PHP code to Advanced recent post widget plugin
Last modified: August 21, 2016

---

# adding custom PHP code to Advanced recent post widget plugin

 *  [halben](https://wordpress.org/support/users/halben/)
 * (@halben)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/adding-custom-php-code-to-advanced-recent-post-widget-plugin/)
 * Hello,
 * I’m using the Advanced recent post widget for my website. In the advanced-recent-
   posts-widget.php file, I want to change line 154 `<p class="post-date"><?php 
   the_time("j M Y"); ?></p>` **to** `<p>
    <span class=”day”><?php the_time(‘j’);?
   ></span> <span class=”month”><?php the_time(‘M’); ?></span> <span class=”year”
   ><?php the_time(‘Y’); ?> </span> </p>`
 * I know this is easy but I want to override this without it being affected when
   the plugin has been updated. Hardcoding it into the main file works but it’ll
   be gone when it’s updated. Where can I custom override it? FYI: I’m using a child
   theme for my website.
 * If anyone can please help me, it would be awesome!

The topic ‘adding custom PHP code to Advanced recent post widget plugin’ is closed
to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [halben](https://wordpress.org/support/users/halben/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/adding-custom-php-code-to-advanced-recent-post-widget-plugin/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
