Ptah Dunbar proposes a get_widget() function. Similar to get_sidebar(), but it’s there to show that widgets don’t necessarily have to show up on a sidebar area. What do you think? [Link]
Post Revisions:
- 9 August, 2010 @ 6:03 [Current Revision] by hafiz rahman
- 25 February, 2009 @ 19:12 by Ryan Imel
Posted February 25, 2009
James Coletti said:
One step closer to WordPress as a CMS. I think it would be a very useful feature.
on February 25, 2009 at 10:49 pm
Gustaf Jarnling (gjarnling) said:
Very useful. Would streamline the code more. As of now one sometimes call the widget via the sidebar and sometimes through the code; i.e. using a widget in the footer. This is a great suggestion!
on February 26, 2009 at 12:31 am
Dean Saliba said:
And some people say WordPress is rather limited!
I think this is a great suggestion and should sped up the loading the of the page.
on February 26, 2009 at 8:12 am
Craig said:
That would be a great addition to the code base.
on February 26, 2009 at 1:20 pm
Haris said:
I’m 100% up for the change. Semantic value to the code always make me happy.
@Dean, how would it speed up the loading of the page? If the change happens, wordpress will RENAME the function get_sidebar() to get_widget() unless they make changes to the code to improve the perfomance of the wdgets.
on March 21, 2009 at 7:02 pm