Add Google Analytics to Functions.php in WordPress   Recently updated !

The following code will add Google analytics tracking code to your WordPress site’s header. Simply replace “UA-000000000-1” with your analytis UA tracking code and insert the snippet into functions.php.

How to Expire an Advanced Custom Fields Field

Expiring an advanced custom field can come in handy when you have an announcement field or some other set of data that you only want to show for a certain amount of time. In the case we are going to examine below we wanted to create an options field that […]

TapTap Plugin and html5 Blank Theme Conflict

If you use the Taptap mobile plugin for WordPress and you also use the html5 Blank Theme you may not be able to get the styles for the TapTap menu to load properly. If that is the case it is due to a line of code in the functions.php file […]

Remove Content Editor box from Custom Post Type

The following snippet of code will remove the content editor box from a specific custom post type.

Advanced Custom Fields If have field echo value

The following snippet is for Advanced Custom Fields and will echo the field if it exists.

Show Content Only on Home Page or Front Page

The following code will allow you to display content on the home page, or front page, only.

If you want to use this as a conditional statement you could do the following:

Search Engine Bot IP Addresses

Below is a list of the major search engine bot IP address ranges.  It is a good idea to whitelist these to make sure they can access your website.  If you use iThemes Security Pro you can do this in the “Global Settings” area and copy and paste the CIDR […]

Installing Let’s Encrypt SSL on Cloudways

I recently just decided to make the switch over to Cloudways for my hosting platform and have been struggling through some of the changes.  Cloudways offers a free SSL through Let’s Encrypt and setting it up is usually fairly easy.  The only catch with Cloudways is that you have to […]

Change Number of Posts Displayed on Taxonomy Template Page

Here is how to change the number of posts that are display on a Taxonomy Template page within WordPress. So let’s say you want to show 20 posts of two different taxonomies but want the blog to show the default number of posts. Add the following to your functions.php template: […]