Is *AMP-stack web [design and] build is what you do? [Hacking WordPress!] You need a local dev environment. You need and want your dev environment to be a fuss-free, stable, reliable and long-term partner. The thing about the options I’ve… Continue Reading →
You have a multidimensional array where the elements’ keys/values are each on their own line. You want to remove all elements that have the same key.
D’oh. Still a PHP noob after all… Despite NULL and FALSE meaning different things – they’re equal in PHP if you’re not type matching. ref http://stackoverflow.com/
As I’m still an idiot when it comes to media queries and mobile devices and can pass this stuff on to other folks – but needed to give myself and the interested parties a visual representation of how different sized… Continue Reading →
Q. Got a theme that needs two different excerpt lengths? A. Found here: set the standard, longer excerpt as normal in the functions.php file and the override locally using this code:
Easy solution to this basic HTML coding need posted over at Stack Overflow by a random clever bloke. Thanks RCB. My only issue was with UTF-8 characters coming through garbled. Bodged a workaround using this encode entities plug-in for Dreamweaver.
[ This post is now largely if not entirely redundant now thanks to WordPress 3 menu options ] Problem: WP titles are too long to fit in your navigation. Solution: Make the title short enough to fit in the navigation… Continue Reading →
I’ve been hacking somebody else’s CMS (without access to the main engine) and needed to calculate a mathematical function on some prices. Specifically needed to display a percentage drop when given an original price as well as the current price…. Continue Reading →
[Update – see here. I wouldn’t recommend the Apple PHP distro anymore as it has shortcomings. Roll your MAMP!] See full description for PHP here, for activating SSI here. Add PHP with debugging Activate: goto /private/etc/apache2/httpd.conf and uncomment LoadModule php5_module… Continue Reading →