2,101 reputation
22048
bio website tomauger.com
location Toronto, Canada
age
visits member for 3 years, 9 months
seen Dec 18 at 19:42

WordPress developer. Always learning. Hoping to contribute.


Jan
17
awarded  Nice Question
Jan
16
awarded  Nice Question
Dec
14
awarded  Popular Question
Dec
7
comment the_author_posts_link() for authors of custom post types
Haha, are you kidding me? Well THAT definitely would be the way to go, but I would definitely need to verify that. If so, then I will humbly thank you for taking me to school.
Nov
14
accepted Working with l10n contexts (_x etc)
Nov
14
comment Working with l10n contexts (_x etc)
Wow, awesome. Thanks for this!
Oct
16
comment Working with l10n contexts (_x etc)
Hey Chip, I hear you, and to be honest, I'm pretty sure this has nothing whatsoever to do with WordPress. So why post here, right? It's just that it seems like such a common issue in the WP community that someone must have come across it already. I hope you won't recommend removing the question as a result - I do think it's quite relevant to the WP SE.
Oct
16
revised Working with l10n contexts (_x etc)
Further specifications to clarify what I have already tried, to prevent further answers like the one I just received.
Oct
16
comment Working with l10n contexts (_x etc)
Thanks for your comment. I should have specified in my original post that I AM adding _x, _ex and other variants to the keywords.
Oct
16
asked Working with l10n contexts (_x etc)
Oct
16
answered Why should I put if(have_posts()), is while(have_posts()) not enough?
Oct
8
accepted Debugging / displaying errors in WP_Widget->form()
Oct
1
awarded  Nice Answer
Sep
25
awarded  Popular Question
Sep
13
awarded  Notable Question
Sep
9
awarded  Necromancer
Aug
26
awarded  Popular Question
Aug
20
comment How to enqueue script if widget is displayed on page?
You can call wp_enqueue_script() any time before the wp_footer action. The widget is called during the building of the template page. You can either hook onto dynamic_sidebar action, detecting when your widget is actually displayed, or, more simply, just put your enqueue_script() right into the widget() method, as @ChipBennet recommends.
Aug
19
comment How to enqueue script if widget is displayed on page?
Cool idea, but this doesn't actually address the OP's question, since is-active_widget() just lets you know whether a widget has been activated (ie: dragged into one of the sidebar areas in Appearance > Widgets), as opposed to actually appearing on any given page.
Aug
19
comment How to enqueue script if widget is displayed on page?
Ugh. wp_enqueue_script() please. No direct printing of JS.