Category: Web


  • How to exclude empty pages from WordPress Search Results

    Pages with no content can appear in search results. To address this issue, I used the ‘pre_get_posts’ function to exclude any ‘post’ with an empty ‘post_content’ field from the search query. Here’s the code I used:

    read more

    Published:

    Category:

    Tags:


  • How to add a User Role for ‘Client’s to WordPress

    The Client Role Plugin is a simple WordPress plugin that when activated creates a new user role called ‘Client’. This plugin is useful for website owners who want to provide limited access to clients or collaborators without giving them full administrative access. This role will have the same capabilities as the ‘Administrator’ role, However, the […]

    read more

    Published:

    Category:

    Tags:


  • Easy Related Posts WordPress Query

    If you’re building a WordPress website, you may come across a scenario where you need to display related posts based on the current post’s category. This is a common requirement for blog posts and other content-rich websites. The good news is that you can easily achieve this using WordPress’s built-in “WP_Query” class. This class allows […]

    read more

    Published:

    Category:

    Tags:


  • Enabling vCard Uploads in WordPress with upload_mimes Hook

    If you need to allow vCard file uploads to your WordPress site, you can use the upload_mimes hook to add vCard file formats to your list of allowed mime types. In this blog post, we’ll show you how to use this hook and provide a code example that you can use in your custom or […]

    read more

    Published:

    Category:

    Tags:


  • Death By (Exercise Rep Calculator)

    A small javascript calculator for determining the number of reps completed during a “Death By” EMOM workout. https://codepen.io/philhoyt/pen/bGpGLeN

    read more

    Published:

    Category:

    Tags:


  • How I am styling Select elements

    I’ve complained about styling forms before on this blog. But things have gotten better over the last several years and we are starting to see some browser consistency. I did run into a problem with select elements to find that adding pseudo classes won’t work, which is my usual go to for adding font icons […]

    read more

    Published:

    Category:

    Tags:


  • Custom Animated Submit Button for Ninja Forms

    Ninja Forms is easily one of my favorite WordPress plugins. It’s one of the most design agnostic form building plugins I’ve come across and has saved me time on every project. Every now and then a designer asks for some UI that isn’t easily accommodated by most form markup. I needed to animate a submit […]

    read more

    Published:

    Category:


  • Generate Post Title and Slug from Advanced Custom Fields

    I often need to create post titles in WordPress based on fields I’ve generated using Advanced Custom Fields. Below is an example that assumes we have a Custom Post Type registered to “staff” and two Custom Fields with the name of “first_name” and “last_name”. Using the “update_value” hook provided by Advanced Custom Fields and “wp_update_post” […]

    read more

    Published:

    Category:


  • How WordPress default themes add Google Fonts

    I spent some time diving into Twenty Seventeen in preparation to develop for the theme directory. I was curious as to how the developers of very popular theme would enqueue a Google Font. I am no stranger to using a @import tag in the stylesheet, but I assumed there had to be a more sustainable solution. What […]

    read more

    Published:

    Category:

    Tags:


  • Free Plugins to Enhance your WordPress Experience!

    The WordPress UI is one of the best CMS’s on the market and continues to improve with every version. That being said there are a few features that seem to be missing which could make your experience a whole lot better and I am going to show you a few plugins to fill that void! […]

    read more

    Published:

    Category:

    Tags: