When using conditional tags in WordPress, if you hook in too early the conditional tags don’t work because WordPress hasn’t determined their values yet. The earliest hook for conditional tags Hook wp Example Hook Function to wp add_action( ‘wp’, ‘function_that_uses_is_front_page’ ); Examples of conditional tags is_home() main blog page is_front_page() front of the site is […]
Git Submodule fatal: Could not read from remote repository
Why to Setup Your Git Submodules as https:// not ssh I was pulling a public GitHub repo the other day which featured submodules. The frustrating problem is whenever I tried to init the submodules with the line git submodule update –init –recursive I got the error Git Submodule fatal: Could not read from remote repository […]
Inexpensive 27″ Monitor
I’ve been very impressed with the 27″ IPS-ZERO-G Slim Monitor WQHD 2560×1440 – Dual Link DVI, VGA from Monoprice. At just under $400, this was an excellent purchase for the money. It is disappointing that it uses a DVI connection rather than HDMI but with my Mini DisplayPort to DVI Adapter, also from Monoprice, hooking up my […]
Contribution to WordPress Core
WordPress 3.9 released yesterday and I’m excited to see my name as one of the contributors. Looking forward to contributing more to future releases. You can see more of my open source work at http://github.com/salcode
How to Ramp Up WordPress Developer
WordPress Framework Buy and learn to build with the WordPress Genesis Framework. When I started using the Genesis Framework my work improved tremendously, not only because it is a great framework but because it showed me the power of and got me using hooks and filters, which are the key to building in WordPress. I haven’t […]
Chrome Clear Redirect Cache
Chrome Caches Redirects Google Chrome caching redirects, is a known behavior and not one that is planned to change. This is a logical decision, unfortunately the lack of any obvious mechanism to clear these redirects is frustrating at times. There are generally two situations where this occurs. When the Website Returns a HTTP Status Code […]
Undo Git Commit
That is Not What I Meant to Commit It seems no matter how many times I do git status, I still managed to sneak in a completely wrong commit sometimes. Additionally, I never remember how to undo a commit so I end up googling “undo git commit” and I get way more information than I […]
Bare Minimum Git Presentation
Presentation I’ll be presenting at the April 7, 2014 Philly Burbs WordPress Meetup on Bare Minimum Git. A walk-through on how to get you and your team up and running with Git using a minimal workflow. This is an interactive talk so please bring your laptop. Summary Using Git has been an invaluable addition to my […]
Bathroom Clock Lifehack
My Wife is a Genius – The Bathroom Clock Every morning as I got ready for work, I’d bring my watch into the bathroom to make sure I was ready on time. Every once in a while I’d forget my watch and have to go get it. Despite this constant use, I wasn’t smart enough […]
WordPress Presentations
I’m interested in doing some presentations at the Philly ‘burbs WordPress Meetup and have been brainstorming ideas. I’m sharing my list here and I’m certainly open to feedback or recommendations. My Web Development Milestones Over the years as a web developer, there has been certain changes or tools I’ve adopted that have had a dramatic […]