I need help,need to pass data from page,to widget function,I need to pass author id to widget,any idea?
Tnx
Leave a Reply
You must be logged in to post a comment.
I need help,need to pass data from page,to widget function,I need to pass author id to widget,any idea?
Tnx
You must be logged in to post a comment.
It should be possible to read the global
$post
variable in your widget function. This will contain all information about the post (or page) displayed on the current page.