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.


Aug
25
comment the_author_posts_link() for authors of custom post types
Right on the money. Adding a pre_get_posts filter and updating $wp_query to include the post type does the trick.
Aug
25
comment the_author_posts_link() for authors of custom post types
This solution addresses the author information not being populated, but not the post type listing of author's articles.
Aug
25
comment the_author_posts_link() for authors of custom post types
That's an interesting approach. It won't work in my case because a) I'm not getting a 404 error page, just an unpopulated authors.php page and b) that method still won't populate the query with custom post-type listings. But a really cool solution nonetheless!
Aug
24
answered the_author_posts_link() for authors of custom post types
Aug
24
comment Why do some core functions get wp_ while others do not? What's the rule?
Thanks Rarst. Otto confirmed it. Sigh. I was hoping... I'm with Chip!
Aug
24
accepted Why do some core functions get wp_ while others do not? What's the rule?
Aug
24
asked the_author_posts_link() for authors of custom post types
Aug
24
comment How safe / sanitized is wp_insert_posts()?
lol @ latest edit. sometimes it takes some digging to find all the gold already buried inside core :) I lost the thread when I was tracing it back. Looks like you're a better sleuth than I! Thanks for sticking with this, and updating the codex.
Aug
24
comment Why do some core functions get wp_ while others do not? What's the rule?
haha. I actually thought it was exactly the opposite - that wp_ functions were more of the internal (you-can-use-it-but-it's-really-internal) variety while the others were more public. Sad as it sounds though, maybe Rarst et al. are right and there is no rationale.
Aug
24
comment Display navigation menu item conditionally based on user capabilities
+1 Thanks for taking the time to add your solution! It's always appreciated by others that stumble upon the question in a Google or SE search. Cheers!
Aug
23
asked Why do some core functions get wp_ while others do not? What's the rule?
Aug
23
accepted How safe / sanitized is wp_insert_posts()?
Aug
23
comment How safe / sanitized is wp_insert_posts()?
Thanks Scribu for that correction - definitely a better way to go! Though I wish you hadn't scrapped that entire code snippet, because it was also a good illustration of other aspects of using wp_insert_post() that the main example doesn't cover.
Aug
23
accepted Is $object_type truly required with register_taxonomy()?
Aug
23
comment WordPress built-in method to extract array of term IDs?
Wow, very cool. More WP Goodness that's buried in there! Thanks for posting - I just learned something new! For the record, the solution I gave (and accepted) is the more idiomatic WP way of extracting a list of IDs from the taxonomy in question, however, if you need a more complex tax query, or sorting, then the method @tollmanz suggests is far more versatile. Nice one!
Aug
23
revised How safe / sanitized is wp_insert_posts()?
added 206 characters in body
Aug
23
comment How safe / sanitized is wp_insert_posts()?
Updated the Codex to show an example of data validation and wp_insert_posts().
Aug
18
awarded  Tumbleweed
Aug
16
comment add_role() run only once?
Thanks for the update - I like the simplicity of the update_option solution
Aug
16
accepted add_role() run only once?