no more WPLANG in wp-config
as of 4.0, WP doesnt use
define('WPLANG', 'en_GB');
in wp-config but uses
$locale='fr_FR';
My navigation menu started disappearing on category pages. First I suspected there was something with the header or menu location, I have double, triple checked everything and I was pulling my hair out trying to find a solution. Turns out, my attempt to order posts by a custom field interfered with the menu. if( ! $query->is_main_query())…
Time and again i fall for this same simple mistake. This may not be intuitive in the context of serialized arrays. If you fetch a serialized array with this method you want $single to be true to actually get an unserialized array back. If you pass in false, or leave it out, you will have…
It provides crucial plugin info and many pointers. Like plugin folder, plugins name, plugins main file . More importantly, it could help you with a global unique_slug. More on this, and get_file_data() workaround later…
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…
If you have a comment in your <head> that says <!– This site is optimized with the Yoast WordPress –> it’s not a big deal for the average user, but if you do not want to openly reveal that you are using WordPress, this is utterly annoying for you. I usually use my own functions…
If you are using “page-template”s you’ll have problems with pagination since pages are not meant to display posts and some people frown upon using page-templates for custom archive display, but it’s sometimes the simplest way. Anyway the solution is 1.) to nullify the global $wpquery 2.) adding ‘paged’ => $paged arg. before displaying your posts…