2,131 reputation
22148
bio website tomauger.com
location Toronto, Canada
age
visits member for 3 years, 11 months
seen Jan 26 at 18:23

WordPress developer. Always learning. Hoping to contribute.


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?
Aug
11
comment add_role() run only once?
Aw crap. I even knew about that too from some earlier rooting about the WP_Roles class. Can you think of any downside to NOT using the database for roles? And is there a WP best practice for doing something only once?
Aug
11
comment Making a theme multilingual by adding a custom taxonomy to posts and pages called “Languages”?
To add to that if you want a language switch button at the top of a page (for example 'show this page in French') then you have to find a way to associate that particular post (in English) with a corresponding post (in French). One method would be scribu's Posts 2 Posts as toscho mentions. Consider using a custom non-hierarchical (ie 'tags') taxo as an alternative way to relate posts, where each tag has a unique slug that would correspond to some 'universal' language-independent identifier for that particular content.
Aug
11
revised add_role() run only once?
edited title
Aug
11
asked add_role() run only once?
Aug
4
answered Can't login after my site was moved to a new server
Aug
2
comment Why is that gdsr_sort=thumbs (GD start rating plugin) only works with query_posts and not with WP_Query?
Still not fixed as of latest version 1.9.10. Thanks for the info, Jan.