If a user is entering a phone number via an admin section, and you want to be able to hit that with some regex in order to turn it into a valid link. This example is using the “get_field” from the ACF api, but you can reference your variable how ever you’d like. |*|-php-|*| <a …continue reading
Tag: WordPress
WP Plugin Business Address
A client asked me the other day if there was a way to write his address once in the backend, and display it in various places throughout the site. Quickly, my answer was “yes, of course”, after all we’re just creating some variables and echoing them. A few solutions came to mind, but I did …continue reading
A few of my favorite WP functions – collection 1
Some great WP functions to make your life just a little happier. I’m always digging through past projects grabbing these snippets. Here they are, centralized! Note! I did not write any of these, I’ve just collected them throughout my various projects. Your mileage will vary. A new ‘Read More’, replaces the […] |*|-php-|*| function new_excerpt_more( …continue reading
Roll our own Events with Custom Post Types and Advanced Custom Fields
With the vast amount of Event’s Plugins in the WP universe, it would be crazy to roll your own! Let’s dig in… First off I don’t like reinventing the wheel, nor am I a plugin-phobe. But recently I’ve ran into a few occasions where I needed something unique, that I couldn’t get out of one …continue reading
Strengthen WP without installing a plugin
WP Security Has been on my mind. As v 3.7.1 WP ships with auto-updates for security and maintenance. This puts me at peace of mind for many of my clients, who unfortunately, don’t update as much as they should. I always take a few precautions upfront that I know help strengthen the site: Never use …continue reading