Using few the same widgets – wrong ID
-
Hi
My problem is that i’m using
$this->id
in my widget’s code to show widget’s ID. It’s working correctly if i display few widgets in some sidebar but there is a problem with Widget Shortcode – every widget displays ID: “-1” instead of for example “my_widget-5”.
Is there maybe a workaround?Thanks.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Using few the same widgets – wrong ID’ is closed to new replies.