Pat Eason's ugly mug

Pat Eason

Frontend Developer


Query Performance in WordPress

WordPress queries can quickly become resource intensive if you are handling many meta and taxonomy queries alongside your queries. Running a WP_Query() along with get_terms() and get_post_meta() for each query item builds up; though the flexibility of being able to bring that data into frontend designs is appealing. The more complicated your designs get with […]

Horizontal Split Nav – WordPress

Split navigation is a popular, albeit difficult to implement gracefully, solution for many designers when trying to make a standard navigation edgy. It’s not as easy to manage from a CMS/CSS standpoint as a standard menu, especially when you need to create a universal hierarchy (which you should be doing if you’re delivering to a […]

Check if Page/Post exists in WordPress menu

If you’re like me and you spend time making secondary, tertiary, quaternary navs and breadcrumbs then you know the benefit of a single menu hierarchy be it in the form of organizing pages in parent->child relationships or, as I usually do, giving users one massive menu to manage. Benefits of this are multiple: you can […]

Get Users by display_name using $wpdb

If you’ve ever tried to retrieve users by a display name, as I have, and tried to use get_users you’ve inevitably ended up grabbing all the users and then looping through them after the fact. That takes too long when we just want the users who’s display names match what we’re looking for. For that, […]

Get WordPress Featured Image/ Post Thumbnail URL

WordPress’ featured images/post thumbnails are great, but if you’ve done any development that requires a background image instead of a static image then you’re going to need the URL for the image and not the pre-tagged image. You could do this with JS, like I had done for a while, of you can use one […]