Title: custom HTML output template
Last modified: August 21, 2016

---

# custom HTML output template

 *  Resolved [jon.m.downey](https://wordpress.org/support/users/jonmdowney/)
 * (@jonmdowney)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-html-output-template/)
 * I have created a new widget in the folder as you describe on the Installation
   page named 1widget.php
 * However, when I set up the widget for display and use that name in the template
   filename, the widget does not display.
 * Suggestions?
 * [http://wordpress.org/plugins/flexible-posts-widget/](http://wordpress.org/plugins/flexible-posts-widget/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [DaveE](https://wordpress.org/support/users/dpe415/)
 * (@dpe415)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-html-output-template/#post-4280340)
 * Hi Jon,
 * Thanks for trying out the plugin. I’ve got a couple ideas on why this might be.
   First, does the widget display content if you _don’t_ use the custom template?
   If it does not, then you know the issue is related to the get posts & display
   options, not your custom template.
 * If the widget _does_ display posts using the default template, and still does
   not display posts with your custom template, I’d check a few things:
    1. Did you properly create the `flexible-posts-widget` folder directly in the root
       of your current theme folder?
    2. Is your custom template file directly within the `flexible-posts-widget` folder
       in your theme root?
    3. Try naming your custom template file with a filename that doesn’t start with
       a number, possibly `widget1.php` or something along those lines.
    4. Are you getting any [debug notices or errors](http://codex.wordpress.org/Debugging_in_WordPress)?
 * If none of those work, feel free to post back here. If the site is accessible
   online somewhere, I may be able to take a quick look for you.
 * Sorry for the trouble,
 *  Plugin Author [DaveE](https://wordpress.org/support/users/dpe415/)
 * (@dpe415)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-html-output-template/#post-4280592)
 * Hi Jon,
 * Since I haven’t heard back from you, I’m going to assume that this is working.
   Feel free to post back here if you continue to have trouble. Thanks!
 *  Thread Starter [jon.m.downey](https://wordpress.org/support/users/jonmdowney/)
 * (@jonmdowney)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-html-output-template/#post-4280596)
 * Actually it did not. I tried several variations and was unsuccessful.
 * I have gone another route. Thanks for the help.
 *  Plugin Author [DaveE](https://wordpress.org/support/users/dpe415/)
 * (@dpe415)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/custom-html-output-template/#post-4280597)
 * Hi Jon,
 * I’d love to find out why it wasn’t working. What were the results of the suggestions
   I made above? Were you able to see your posts using the standard template? What
   about the other steps?
 * Thanks!
 *  [chinkchink](https://wordpress.org/support/users/chinkchink/)
 * (@chinkchink)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/custom-html-output-template/#post-4280715)
 * Hello DaveE, first off, thank you for offering an awesome plug-in at no cost,
   really appreciate it.
    I ran into similar problem with my custom template not
   showing up, and that’s how I ended up on this thread… after reading through your
   responses, I realized that my template file needs to be within the folder of “
   my” theme, not the “themes” folder:
 * The initial mistake I made after reading your instruction under FAQ, is putting
   the php file here:
    SiteRoot/wp-content/themes/flexible-posts-widget/MyTemplate.
   php
 * Now I understand it needs to be here:
    SiteRoot/wp-content/themes/MyTheme/flexible-
   posts-widget/MyTemplate.php
 * It was my bad that I misread your instruction, but I do think a file location
   example would have helped me to get it right the first time.
    Thanks again… and
   happy 2014!
 *  Plugin Author [DaveE](https://wordpress.org/support/users/dpe415/)
 * (@dpe415)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/custom-html-output-template/#post-4280716)
 * Thanks for the input, chinkchink. I’ll update the wording to make it easier to
   understand and add an example file path in the next release. Cheers!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘custom HTML output template’ is closed to new replies.

 * ![](https://ps.w.org/flexible-posts-widget/assets/icon-256x256.jpg?rev=984592)
 * [Flexible Posts Widget](https://wordpress.org/plugins/flexible-posts-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-posts-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-posts-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-posts-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-posts-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-posts-widget/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [DaveE](https://wordpress.org/support/users/dpe415/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/custom-html-output-template/#post-4280716)
 * Status: resolved