Widget Builder
[resolved] Custom template file not loading (4 posts)

  1. mcdaniel.isaac
    Posted 3 years ago #

    I was trying to setup a custom template by following the steps in your readme. However, it looks like the get_template_hierarchy function in widget-builder.php seems to strip the .php extension from the custom widget.php before entering into the if block causing WordPress' locate_template function to not find the custom file.


  2. Timothy Wood
    Plugin Author

    Posted 3 years ago #

    Hmm I apologize for not seeing this sooner, I'm not happy that I'm not notified of new posts.

    I do see what you mean about the locate_template issue not having the extension in the file lookup. I will work on cleaning up the get_template_hierarchy method and fix the file missing ext.

  3. ricjoh
    Posted 3 years ago #

    I found a hack. Just create a file (or symlink) in that same directory called "widget" Then get_template_hierarchy will find that file and return the correct file. (.php)

  4. Timothy Wood
    Plugin Author

    Posted 3 years ago #

    the template pathing folder has been updated in the lastest release v1.3 - let me know if you continue to have issues.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Widget Builder
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.