1,881 reputation
1641
bio website tomauger.com
location Toronto, Canada
age
visits member for 3 years, 1 month
seen Mar 25 at 20:52

WordPress developer. Always learning. Hoping to contribute.


Apr
26
awarded  Popular Question
Apr
25
comment WP_Query can't exclude more than 1 author?
I don't think this is a good solution, because it completely short-circuits all of the business logic and brains within WP_Query. You're much better using the 'posts_where' filter and appending to the existing WHERE clause (once you do the appropriate checking to be sure you're modifying only those queries you're interested in modifying). Your solution works, but is missing out on any of the "brains" that WordPress already provides. Sticking with filters is usually a much better bet.
Apr
25
comment WP_Query can't exclude more than 1 author?
Sadly, this will not work for a number of reasons 1. WP_Query->set() only takes 2 arguments - it will completely ignore the 3rd and 4th arguments; you probably meant $query->set( 'author', '-2, -3, -4' );, 2. however that will not work either based on a limitation on how the author query variable is currently being handled in core. Follow (and add your cc) to this bug/enhancement request: core.trac.wordpress.org/ticket/16854
Apr
22
comment Trying to create a table/list of my EventBrite course listings
Too bad this question was closed. I have exactly the same requirements. Arguably, this is less of a WordPress issue and more of an Eventbrite API issue.
Apr
19
awarded  Necromancer
Apr
15
comment Pre-install widgets in WP-Admin
@RobMyrick the best thing of course is just to move the widget out of the sidebar and into the "inactive widgets" section. That way you don't lose any of the configuration data - you just "hide" the widget from being seen.
Apr
11
comment Using the on-board image editor for featured images: edits are not being used
Thanks for circling back on this, Jer. Sigh. Maybe we push for this in 3.7
Apr
5
comment Advice on naming files for a plugin
Yeah, I've often wondered why they recommend hyphens instead of underscores for file names.
Apr
5
answered How do I call wp_get_current_user() in a plugin when plugins are loaded before pluggable.php?
Mar
21
awarded  Notable Question
Mar
4
awarded  Yearling
Feb
26
awarded  Notable Question
Jan
27
awarded  Popular Question
Jan
23
awarded  Notable Question
Dec
21
comment After having installed APC Object Cache Backend transients stopped working
APC Version 3.1.9; PHP Version 5.3.5
Dec
19
suggested suggested edit on Using wp_enqueue_script on shortcode function handler
Dec
17
answered How do I enqueue styles/scripts on certain /wp-admin pages?
Dec
10
comment After having installed APC Object Cache Backend transients stopped working
Thanks @meeble for the update. It's a little hard for me to be as proactive as I'd like to be because it's on a production server where we have had to turn off the cache as a result, and I'm leery to turn it back on. If there is a fix, please come back and post it here so I can close out this thread!
Dec
7
awarded  Necromancer
Dec
3
comment How do you allow plugins to be updated using the GUI without breaking your subversion repository?
Thanks Otto! I've accepted this answer as the most complete. The bounty got mistakenly awarded to the wrong answer (and an incomplete one at that), and there's no way to undo it. Should make that other user happy though - I daresay you hardly need the additional rep.