This plugin adds a widget that displays a specified template partial.
git clone
to /wp-content/plugins/flyn-template-part-widget- Activate in your WordPress plugins list
- Check the WordPress documentation for get_template_part.
- Create a partial in your theme folder - for example partials/content-mydetails.php
- Add the Template Part widget to your widget list
- Set Slug to partials/content and Name to mydetails