WordPress Written by Ben Marshall |
Here's a quick tip if you use Pantheon's localdev to do your local development in. Change the PHP version by updating your
.lando
file..lando
file.get_post_field
function to get current page name WordPress.Here’s a quick tip if you use Pantheon’s localdev to do your local development in. Change the PHP version by updating your .lando
file.
Get the current page name in WordPress — the WordPress way. No hacks or referencing globals. A clean and simple approach using the get_post_field
function to get current page name WordPress.
Use Prism.js in WordPress with the Prism.js Gutenberg block plugin. Uses the existing code block for easy & semantic integration.
WordPress has logging functionality built-in & easy to add to, but what if you want to create your own WordPress custom log file for a plugin or theme?
There’s the wrong way & the WordPress way to set cookies via PHP — both work, but only one follows WordPress coding standards. Learn how to utilize core constants to get & set cookies.
Finding that your WordPress hooks are firing more than once per page load? Learn how to ensure your WordPress hooks like init
, template_redirect
and others only fire once per page load — a headache that’s easily solved.
👋 Howdy! My name is Ben Marshall & I’ve been developing websites for over 20 years. I specialize in WordPress development, SEO strategy & LOVE what I do. Familiar with CSS-Tricks? … you should be, my site’s design was heavily inspired by it — hope you like it.
I build websites for both small mom & pop shops to large Fortune 500 companies. In addition to freelance work, I also have a full-time position at the New York-based Entermedia agency. Need a site, help with an existing one or a boost in search engines? I’m your guy, contact me today!
Are you a non-profit or organization helping the community and in need of a site? I offer heavily discounted services — sometimes free — to worthy causes.