Plugin Author
mrwweb
(@mrwweb)
Hi @phrenq. Thanks for reporting this issue.
I can’t replicate that warning using Feature a Page Widget 1.2.4 and Twenty Twelve.
If you could provide the following information, that may help me see if this is a problem with the plugin or something else:
- Do I understand you correctly that the error you got was in another theme or plugin?
- Can you post a longer excerpt of the code that actually has the error. (pastebin or gist)?
- Did you update other plugins at the same time?
Thread Starter
phrenq
(@phrenq)
Sorry for the delay — it took me a bit to narrow down the key steps to reproduce.
You should be able to repro in Twenty Twelve, if you replace index.php with this file: https://gist.github.com/frankpape/44eb1fd8499394ea0988
I did this in a fresh test WordPress install, with no other plugins installed. The only content changes I made were to add some manual excerpts to the sample post and the sample page.
They key points are:
1. The sidebar with the Feature a Page Widget must be rendered before the loop.
2. The apply_filters call should happen inside the loop.
Hope that helps!
Plugin Author
mrwweb
(@mrwweb)
Thanks for this, @phrenq. I’ll look into this and try to get a fix out sometime this week.
Plugin Author
mrwweb
(@mrwweb)
Thanks for all your help on this, @phrenq. You’ve earned yourself a changelog shoutout 🙂
I just pushed out version 1.2.5 that at least resolves the problem you helped me recreate on my test site. it rolls back a key change made in 1.2.4, so I suspect that 1.2.5 will work for you without problem.
If you could, please let me know if you can safely upgrade. I’ll hold off on marking this as resolved until then.
Thread Starter
phrenq
(@phrenq)
Glad I could help! 1.2.5 is looking fine on my end. Thanks for the useful plugin :).
Plugin Author
mrwweb
(@mrwweb)
Great. Thanks again for your help. Marking this as resolved.