how can i limit the number of instances for my widget
Widget are PHP classes, so you can use static class variables to count how many times a widget is used. As @Howdy_McGee noted, if your widget show images randomly there are chances that there are widget showing same image even if there are same number of widgets and images, so you need also to address … Read more