Below are a list of functions I find myself using day in and day out when building for WordPress. There is a mixture in there of stuff you can find all over the internet to a few tailored pieces of code I’ve used. I thought they may come in handy so I’m sharing them here, if you know a better way of doing something please let me know – I’m always trying to learn.
Enqueue CSS just while logged in to WordPress
If you’ve googled the above title like me and came up with a bunch of links on how to enqueue (or load) CSS or JS whilst you are in the admin area, you will have had a ton of stuff related to admin_enqueue_scripts which you don’t want…
Category Based Previous & Next Links on Custom Post Types for WordPress
Working on a client project in WordPress recently, I came across something I’d not thought of before…
Category based Previous and Next links on Custom Post Types.
Contact Form 7 Custom Styling
Ever wanted a really easy way to sort out the error styling on the popular Contact Form 7 Plugin for WordPress? The following CSS will give you some solid error styling out of the box and put the errors into block level (in flow with the form) errors rather than the hover over thing it does by default.