Title: Adding php code in template??????
Last modified: August 19, 2016

---

# Adding php code in template??????

 *  Resolved [rcktech](https://wordpress.org/support/users/rcktech/)
 * (@rcktech)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/adding-php-code-in-template-1/)
 * Hello All,
 * I installed plugin (visualized recent column)
    [http://wordpress.org/extend/plugins/visual-recent-posts](http://wordpress.org/extend/plugins/visual-recent-posts)
   I tried to go the website but the web site is down. The plugin instruct you to*********
   1. Place <?php insertVisualRecentPosts(); ?> in your template where you want 
   things to show up. If you have a nice hook system in your theme (like Thesis 
   theme from diythemes.com), then you don’t even have to modify any code. Just 
   enter the hook name in the plugin’s option panel. ****
 * Could someone elaborate on this? Does this mean you add this code on page or 
   a posting? Or it had to be added to one of the files in the theme. I am not sure
   what that means. I tried to add it in the posting page but nothing happens. Not
   sure,
    My question might sound too simple to the veteran WordPress Developer 
   but it’s not so simple to me, I am new to this word press business so please (
   be nice) 🙂

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [16 years, 9 months ago](https://wordpress.org/support/topic/adding-php-code-in-template-1/#post-1175251)
 * You put that code in your theme file where you want the things to show up.
 * So if you want it in your sidebar, you edit sidebar.php (or get a PHP widget 
   tool and put the PHP in there).
 *  Thread Starter [rcktech](https://wordpress.org/support/users/rcktech/)
 * (@rcktech)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/adding-php-code-in-template-1/#post-1175405)
 * Thank you,
 *  [soniaiACTw](https://wordpress.org/support/users/soniaiactw/)
 * (@soniaiactw)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/adding-php-code-in-template-1/#post-1175635)
 * Hi – I added the code to archives.php thinking I could then just allocate a page(
   s) to an Archive template and I could choose where I wanted the plugin to show.
   Not working… I tried all the different templates (sitemap / full screen / redirect
   etc) and still nothing.
 * I read in another thread that the code needs to be placed before/after other 
   existing code, but have no idea what this is, if it were in the right place in
   the right php file presumably that would work?
 * it’s a GREAT pluggin and I searched for a week to find the right solution – please
   help me make it work!!! 🙂

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

The topic ‘Adding php code in template??????’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [soniaiACTw](https://wordpress.org/support/users/soniaiactw/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/adding-php-code-in-template-1/#post-1175635)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
