# Shortcode in wordpress to use blade partial in html

**URL:** https://discourse.roots.io/t/shortcode-in-wordpress-to-use-blade-partial-in-html/20631
**Category:** sage
**Created:** 2021-04-18T17:02:30Z
**Posts:** 6
**Showing post:** 4 of 6

## Post 4 by @strarsis — 2021-04-18T19:32:40Z

First register a shortcode in WordPress:  
[https://codex.wordpress.org/Shortcode\_API](https://codex.wordpress.org/Shortcode_API)

In the shortcode render function you then render the blade template (Sage 9):  
[https://discourse.roots.io/t/manually-render-blade-template-in-functions-php/11292/3?u=strarsis](https://discourse.roots.io/t/manually-render-blade-template-in-functions-php/11292/3)

---

_[View the full topic](https://discourse.roots.io/t/shortcode-in-wordpress-to-use-blade-partial-in-html/20631)._
