353 reputation
213
bio website leho.kraav.com
location Estonia
age 35
visits member for 2 years, 11 months
seen yesterday

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
May
28
comment How do I safely force get_theme_mod() to use a defined get_option(“stylesheet”) value?
Hmmm good thinking going a level higher with the pre_get_option filter, not sure why I didn't think of that (answer: past midnight!). I'll put together some example code and let's possibly edit the answer then if you like it.
May
28
comment How do I safely force get_theme_mod() to use a defined get_option(“stylesheet”) value?
I am not sure I follow. This looks like hardcoding a single value, while I would want to re-use the whole array. Looking at get_theme_mod(), I would rather expect some filter that lets me override $mods in get_theme_mods().
May
28
asked How do I safely force get_theme_mod() to use a defined get_option(“stylesheet”) value?
Apr
6
answered Is it possible to disable caching of an option when using w3 total cache?
Jan
26
comment group posts by taxonomy terms
Cached with transients?
Jan
26
revised Recommended way to drop a pending query (in pre_get_posts)?
more accurate details about query nature