Title: Add template code to post?
Last modified: August 18, 2016

---

# Add template code to post?

 *  [imbrettjackson](https://wordpress.org/support/users/imbrettjackson/)
 * (@imbrettjackson)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/add-template-code-to-post/)
 * To enact a unique control scheme I’d like to be able to put template tags into
   the the body of a post. Example – I want to make the image included in a post
   to link to the next post available.
 * When I drop in “<?php next_post(); ?>” as a hyperlink nothing happens? Can I 
   include template tags in the body of a post and how?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/add-template-code-to-post/#post-469647)
 * No PHP code works in the content. They should be in the template file!
 * Otherwise search for plugins that allow you the execution of PHP in posts/Pages…
   
   [http://codex.wordpress.org/Plugins/Posts_Formatting](http://codex.wordpress.org/Plugins/Posts_Formatting)

Viewing 1 replies (of 1 total)

The topic ‘Add template code to post?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [19 years, 7 months ago](https://wordpress.org/support/topic/add-template-code-to-post/#post-469647)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
