[wp-trac] Re: [WordPress Trac] #9701: Add a the_widget() function
to output a generic widget anywhere in a template
WordPress Trac
wp-trac at lists.automattic.com
Wed May 13 20:53:01 GMT 2009
#9701: Add a the_widget() function to output a generic widget anywhere in a
template
-------------------------------------------+--------------------------------
Reporter: Viper007Bond | Owner: azaozz
Type: feature request | Status: closed
Priority: low | Milestone: 2.8
Component: Widgets | Version: 2.8
Severity: minor | Resolution: fixed
Keywords: has-patch tested dev-feedback |
-------------------------------------------+--------------------------------
Comment(by Denis-de-Bernardy):
mm... the sprintf() call might be wrongly placed. I attached a patch to
make this work:
{{{
the_widget('foo', $instance, array('before_widget' => '<li class="foo
%s">', 'after_widget' => '</li>');
}}}
or then, you're assuming that this syntax will be used (in which case
nevermind, and not re-opening for this reason):
{{{
the_widget('foo', $instance, array('before_widget' => '<li>',
'after_widget' => '</li>');
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9701#comment:21>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list