402 reputation
415
bio website leho.kraav.com
location Estonia
age 35
visits member for 3 years, 4 months
seen yesterday

1d
awarded  Necromancer
1d
awarded  Yearling
Apr
30
awarded  Critic
Apr
22
comment Getting instance variable in scope of 'wp_enqueue_scripts'
Hahaaa, loving the [] construct! Took me like a full minute to understand.
Apr
17
comment Why do you need to wrap a function inside array($this, function)
@toscho link to an example correct initialization setup? Call a dedicated init() function or something from the constructor?
Feb
13
awarded  Popular Question
Sep
9
awarded  Nice Answer
Jul
2
awarded  Curious
Jun
10
awarded  Excavator
Jun
10
revised How can I tell if I'm on a custom post type archive page?
is_archive() doesn't support any parameters. At least not anymore. Edit approved by author of the answer.
Jun
10
suggested approved edit on How can I tell if I'm on a custom post type archive page?
Jun
10
comment How can I tell if I'm on a custom post type archive page?
As far as I can see, codex clearly says is_archive() does not accept any parameters. Source code backs that up.
Jun
10
comment condition for only if is archive for default post type
Doesn't this miss is_tag() etc features of the is_archive()? I find it perplexing I can't use is_post_type_archive( "post" ) to differentiate between blog posts and other post types.
Jan
27
awarded  Necromancer
Jul
9
revised Stale $GLOBALS['post'] after custom WP_Query empty result set bothers my template, whose fault is this?
add info how the global query is overwritten
Jul
9
comment Stale $GLOBALS['post'] after custom WP_Query empty result set bothers my template, whose fault is this?
I think I will just destroy the original query with "posts_where" filter from inside "pre_get_posts". That should restore sanity to the world.
Jul
8
asked Stale $GLOBALS['post'] after custom WP_Query empty result set bothers my template, whose fault is this?
Jul
6
awarded  Yearling
Jul
6
asked How to get vim to autocomplete WordPress API functions?
Jun
18
awarded  Talkative