| bio | website | tomauger.com |
|---|---|---|
| location | Toronto, Canada | |
| age | ||
| visits | member for | 2 years, 2 months |
| seen | 2 days ago | |
| stats | profile views | 463 |
WordPress developer. Always learning. Hoping to contribute.
|
2d |
comment |
Run an action only when Widget actually instantiated (not just registered) @Rarst, a valid point, and one I'll be sure to keep in mind. In this particular case, I think it makes complete sense to tie the metaboxes in the Edit Post page to the presence of the Widget. |
|
May 16 |
answered | Run an action only when Widget actually instantiated (not just registered) |
|
May 16 |
asked | Run an action only when Widget actually instantiated (not just registered) |
|
May 16 |
revised |
How to obfuscate theme directory URLs My question was very misleading in terms of what I was trying to accomplish. |
|
May 16 |
comment |
How to obfuscate theme directory URLs I'm sorry Toscho, I should have been more clear in my OP. Obviously I know about get_template_directory_uri() etc. But that will spit out mysite.com/wp-content/themes/mytheme which is not what I want. Maybe I need to rewrite my OP to be more clear. |
|
May 15 |
asked | How to obfuscate theme directory URLs |
|
May 1 |
answered | get name of the current template file |
|
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 |