I've created a custom widget that I've named openingTimesWidget
which extends the WP_Widgets class and follows the guidelines for creating widgets...
What I'd now like to do is not only add this to a sidebar but be able to call upon it individually...So far I've tried using the_widget('openingTimesWidget')
function directly within some HTML but it returns nothing...
openingTimesWidget
is your widget's classname this should work.