[wp-trac] Re: [WordPress Trac] #10232: Add new hooks called after
template parts are loaded
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 22 18:34:04 GMT 2009
#10232: Add new hooks called after template parts are loaded
-------------------------+--------------------------------------------------
Reporter: sirzooro | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: 2.8.1
Component: Template | Version: 2.8
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+--------------------------------------------------
Comment(by Denis-de-Bernardy):
try this instead:
{{{
function loop_start_handler(&$wp_query) {
global $wp_the_query;
if ( $wp_query === $wp_the_query ) {
echo '<p style="color:red">TEST</p>';
}
}
}}}
I've a few plugins that look for the main loop only, and it's working
great on my end.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10232#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list