Formatting Shortcode Output with a Template
-
I’ve searched here & on Google, but cannot find the answer to my question…
I need to:
- Create a custom post type consisting simply of a title, body and slug (using WordPress 3.0)
- Be able to call a post of that type using a shortcode
- 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.