You can not use conditional tags on init
Queries are only available after “wp” action hook, so ‘init’ is too early to check for it.
Queries are only available after “wp” action hook, so ‘init’ is too early to check for it.
is_numeric doesnt check strings for numbers. You need to use preg_match(‘#[0-9]#’,$string)
as of 4.0, WP doesnt use define(‘WPLANG’, ‘en_GB’); in wp-config but uses $locale=’fr_FR’;
The story: I was getting session file write errors (write failed: No space left on device (28) ) in wp admin, i checked /tmp folder but it was not full, only 60% percent was used. So not being able to pinpoint what the problem was, i thought a reboot would be a good idea. But…
There are mb_strlen() and mb_substr() for multibyte characters however there is no mb_str_word_count. Hence my previous post.
I was working on an autocomplete solution and I was thinking of ways to speed up the search. I will be providing a few examples with results below. Q1 is the default wordpress search with no parameters. Q2 removes the caches since they wont be really necessary. And Q3 is tailored for precision; ie: my…
My metaboxes suddenly stopped working. If that’s the case for you, and you are clueless, try resetting $id for your meta_box