-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Widget ID & ACF data missing #25
Comments
Will look into this ASAP - its more than likely related to As far as |
fix(widgets): Fix widget registration (Fixes #25)
https://github.com/Log1x/acf-composer/tree/log1x/bugfixes I've started on this here but I'm getting trolled a bit due to hook ordering – I'll fix it today/tomorrow as it's about to get in my way on my current project. |
nice one, thanks! not sure if I can be of any help, but give me a shout if there is anything, testing etc |
Hey @Log1x, thanks again for the awesome package. I've just moved onto generating a few widgets but can't seem to access any ACF field data, it looks like the widget id is blank.
Steps to reproduce
$ wp acorn acf:widget Example
Output: Missing
title
&No items found!
Possible solution
I've had a quick look and it seems adding
within the widget() render method fixes it, but not entirely sure that's the right place to set it?
Also perhaps changing
$this->widget->id
to$this->id
in widget.stub:L43 & widget.stub:L73 ?Cheers!
The text was updated successfully, but these errors were encountered: