index of current widget in sidebar
i wonder if i had some opportunity to check using PHP index of position of widget in sidebar.
i am going to create some widget (i think i will do this with help of this tutorial http://www.lonewolfdesigns.co.uk/create-wordpress-widgets/). this widget will show number, same as position of widget in sidebar. how to get this number?
if it is still unclear:
imagine that somebady has widgetized sidebar on his blog. he put there few diffrent widgets and one is mine. this widget have to show message “hello, i am widget number 4 in this sidebar” (if widget will be placed as fourth, otherwise number will be difffrent)
any idea? thank you in advance for any suggestions 🙂
- The topic ‘index of current widget in sidebar’ is closed to new replies.