SIMPLESNIPS.COM https://simplesnips.com Wordpress Snippets for the Rest of Us Fri, 16 Aug 2019 14:13:34 +0000 en-US hourly 1 https://wordpress.org/?v=5.2.2 Add Google Analytics to Functions.php in WordPress https://simplesnips.com/functions-php/add-google-analytics-to-functions-php-in-wordpress/ https://simplesnips.com/functions-php/add-google-analytics-to-functions-php-in-wordpress/#respond Fri, 16 Aug 2019 14:12:11 +0000 https://simplesnips.com/?p=354 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. [crayon-5d574c96792de854512591/]

The post Add Google Analytics to Functions.php in WordPress appeared first on SIMPLESNIPS.COM.

]]>
https://simplesnips.com/functions-php/add-google-analytics-to-functions-php-in-wordpress/feed/ 0
How to Expire an Advanced Custom Fields Field https://simplesnips.com/plugins/advance-custom-fields/how-to-expire-an-advanced-custom-fields-field/ https://simplesnips.com/plugins/advance-custom-fields/how-to-expire-an-advanced-custom-fields-field/#respond Thu, 07 Mar 2019 16:55:12 +0000 https://www.simplesnips.com/?p=344 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 would expire after a certain […]

The post How to Expire an Advanced Custom Fields Field appeared first on SIMPLESNIPS.COM.

]]>
https://simplesnips.com/plugins/advance-custom-fields/how-to-expire-an-advanced-custom-fields-field/feed/ 0
TapTap Plugin and html5 Blank Theme Conflict https://simplesnips.com/random/taptap-plugin-and-html5-blank-theme-conflict/ https://simplesnips.com/random/taptap-plugin-and-html5-blank-theme-conflict/#respond Tue, 26 Feb 2019 18:57:37 +0000 https://www.simplesnips.com/?p=341 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 of the html5 blank theme. […]

The post TapTap Plugin and html5 Blank Theme Conflict appeared first on SIMPLESNIPS.COM.

]]>
https://simplesnips.com/random/taptap-plugin-and-html5-blank-theme-conflict/feed/ 0
Remove Content Editor box from Custom Post Type https://simplesnips.com/admin-tweaks/remove-content-editor-box-from-custom-post-type/ https://simplesnips.com/admin-tweaks/remove-content-editor-box-from-custom-post-type/#respond Fri, 15 Feb 2019 21:23:31 +0000 https://www.simplesnips.com/?p=338 The following snippet of code will remove the content editor box from a specific custom post type. [crayon-5d574c96796e8798305257/]

The post Remove Content Editor box from Custom Post Type appeared first on SIMPLESNIPS.COM.

]]>
https://simplesnips.com/admin-tweaks/remove-content-editor-box-from-custom-post-type/feed/ 0
Advanced Custom Fields If have field echo value https://simplesnips.com/plugins/advance-custom-fields/advanced-custom-fields-if-have-field-echo-value/ https://simplesnips.com/plugins/advance-custom-fields/advanced-custom-fields-if-have-field-echo-value/#respond Wed, 13 Feb 2019 00:38:34 +0000 https://www.simplesnips.com/?p=334 The following snippet is for Advanced Custom Fields and will echo the field if it exists. [crayon-5d574c9679797780823903/]

The post Advanced Custom Fields If have field echo value appeared first on SIMPLESNIPS.COM.

]]>
https://simplesnips.com/plugins/advance-custom-fields/advanced-custom-fields-if-have-field-echo-value/feed/ 0
Show Content Only on Home Page or Front Page https://simplesnips.com/display-posts/show-content-only-on-home-page-or-front-page/ https://simplesnips.com/display-posts/show-content-only-on-home-page-or-front-page/#respond Tue, 06 Nov 2018 17:23:16 +0000 https://www.simplesnips.com/?p=328 The following code will allow you to display content on the home page, or front page, only. [crayon-5d574c9679849561182994/] If you want to use this as a conditional statement you could do the following: [crayon-5d574c967984c431170082/]

The post Show Content Only on Home Page or Front Page appeared first on SIMPLESNIPS.COM.

]]>
https://simplesnips.com/display-posts/show-content-only-on-home-page-or-front-page/feed/ 0
Search Engine Bot IP Addresses https://simplesnips.com/seo/search-engine-bot-ip-addresses/ https://simplesnips.com/seo/search-engine-bot-ip-addresses/#respond Mon, 08 Oct 2018 17:57:46 +0000 https://www.simplesnips.com/?p=321 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 list. Google IP Address Range […]

The post Search Engine Bot IP Addresses appeared first on SIMPLESNIPS.COM.

]]>
https://simplesnips.com/seo/search-engine-bot-ip-addresses/feed/ 0
Installing Let’s Encrypt SSL on Cloudways https://simplesnips.com/server/installing-lets-encrypt-ssl-on-cloudways/ https://simplesnips.com/server/installing-lets-encrypt-ssl-on-cloudways/#respond Thu, 09 Aug 2018 15:48:58 +0000 https://www.simplesnips.com/?p=316 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 make some CNAME changes on […]

The post Installing Let’s Encrypt SSL on Cloudways appeared first on SIMPLESNIPS.COM.

]]>
https://simplesnips.com/server/installing-lets-encrypt-ssl-on-cloudways/feed/ 0
How to Renew Let’s Encrypt SSL through Ubuntu SSH https://simplesnips.com/server/how-to-renew-lets-encrypt-ssl-through-ubuntu-ssh/ https://simplesnips.com/server/how-to-renew-lets-encrypt-ssl-through-ubuntu-ssh/#respond Mon, 21 May 2018 16:45:45 +0000 https://www.simplesnips.com/?p=312 Here is the command to renew a Let’s Encrypt SSL certificate on a Linux server using SSH: [crayon-5d574c9679905836044321/]

The post How to Renew Let’s Encrypt SSL through Ubuntu SSH appeared first on SIMPLESNIPS.COM.

]]>
https://simplesnips.com/server/how-to-renew-lets-encrypt-ssl-through-ubuntu-ssh/feed/ 0
Change Number of Posts Displayed on Taxonomy Template Page https://simplesnips.com/display-posts/change-number-posts-displayed-taxonomy-template-page/ https://simplesnips.com/display-posts/change-number-posts-displayed-taxonomy-template-page/#respond Wed, 21 Feb 2018 22:36:19 +0000 https://www.simplesnips.com/?p=308 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: [crayon-5d574c96799ca622880917/]

The post Change Number of Posts Displayed on Taxonomy Template Page appeared first on SIMPLESNIPS.COM.

]]>
https://simplesnips.com/display-posts/change-number-posts-displayed-taxonomy-template-page/feed/ 0