Title: Formatting Shortcode Output with a Template
Last modified: August 19, 2016

---

# Formatting Shortcode Output with a Template

 *  [Tracy Rotton](https://wordpress.org/support/users/taupecat/)
 * (@taupecat)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/formatting-shortcode-output-with-a-template/)
 * I’ve searched here & on Google, but cannot find the answer to my question…
 * I need to:
    1. Create a custom post type consisting simply of a title, body and slug (using
       WordPress 3.0)
    2. Be able to call a post of that type using a shortcode
    3. Display the output of that shortcode using formatting from an associated template
       file
 * I’ve done numbers 1 & 2, but cannot figure out number 3. It seems like I have
   to do all the HTML markup inside the shortcode function in PHP, but for reasons
   of error prevention and easier HTML updating, I don’t want that.
 * Is what I want even possible? Am I just missing something?
 * Thanks.

The topic ‘Formatting Shortcode Output with a Template’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Tracy Rotton](https://wordpress.org/support/users/taupecat/)
 * Last activity: [15 years, 12 months ago](https://wordpress.org/support/topic/formatting-shortcode-output-with-a-template/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
