Template naming conventions
-
In the documentation you mention that you can have a “Different template per widget / sidebar”. I understand that this is based on the widget id, however I am not understanding how this is applied. In my theme I have a directory ‘acfrpw’ which contains ‘loop-inner.php’. This template works fine to modify ALL acf recent posts widgets, but I would like to specifically target a particular widget. I have the widget id for the specific widget I would like to modify further (widget-1-0-1), but I am not sure how it should be applied to override the default custom template that I already have in place. Should I create another template that uses the widget id in the filename? Or something else? Thanks!
- The topic ‘Template naming conventions’ is closed to new replies.