Blog

James' Posts

Use Advanced Custom Fields (ACF) Image Field to Replace Featured Image

By DJ Nickles

You can use Advanced Custom Fields (ACF) image field to replace the featured image field. In this example, I’ve created an image field for the company logo using the slug “company_logo”. This allows the client to complete an ACF form to add a new member company without having to know how to (or remember to)…

Advanced Custom Fields (ACF) Repeater Shortcode Loop

By DJ Nickles

How to create an Advanced Custom Field (ACF) repeater shortcode that loops through to include each repeater subfield. Credit goes to FransicoG: https://gist.github.com/FranciscoG/c393d9bc6e0a89cd79d1fd531eccf627 Include the following code in your child theme’s function.php file: /** * ACF Pro repeater field shortcode * * @attr {string} field – (Required) the name of the field that contains a…

Free resources for developers blog

By DJ Nickles

Free resources for developers blog

Script to Automatically Update Copyright Year in WordPress and CMS of Choice

By DJ Nickles

Here is a script you can add to your WordPress footer that automatically updates the copyright year of your website: Copy and paste the above script to your WordPress theme’s footer to automatically update its copyright year to the current year.

Force Login Plugin With Custom Login Page and PowerPack for Beaver Builder

By DJ Nickles

How does one protect all content by restricting access to it for only logged in users and have the logged out users redirected to a custom login page built using Beaver Builder PowerPack? 1. Create a new custom login page with Beaver Builder PowerPack and insert the login module. 2. Add plugin “Force Login” which…

How to Change Sender Name and Email in Outgoing WordPress Emails

By DJ Nickles

The best way to change the default sender name and email address for outgoing WordPress emails is by making a quick addition to your theme’s functions.php file. By default, WordPress uses ‘WordPress’ as the sender name for all outgoing WordPress notification emails. And it uses the admin email as the default email. Customizing those items…

How to Block Foreign Internet Traffic to Your Website by Country Code in .htaccess Using Cloudflare

By DJ Nickles

There are a myriad of different ways to block internet traffic to your website from foreign countries.  Most of them cause a strain on your server by comparing each visitor’s ip address with a list of ip address ranges inserted in your htaccess file. There are also country traffic blocking services that are not free…

How to add a WordPress login form to any page or post

By DJ Nickles

Sometimes you want to be able to add a login form anywhere on your WordPress website. You can add the following code to your child theme’s functions.php file. add_shortcode( ‘djs-login-form’, ‘djs_login_form_shortcode’ ); /* Use this shortcode to display a login form anywhere – [djs-login-form redirect=”http://yoursite.com/somewhere”] */ function djs_login_form_shortcode( $atts, $content = null ) { $defaults…

Moving Site to HTTPS using .htaccess

By DJ Nickles

To move or redirect your WordPress site to run completely using HTTPS, insert the following code into your .htaccess file: # First rewrite to HTTPS: # Don’t put www. here. If it is already there it will be included, if not # the subsequent rule will catch it. RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Now, rewrite…

Calvin and Hobbs IFTTT

Bill Watterson (of Calvin and Hobbes fame) Returned Briefly for Charity

By DJ Nickles

Bill Watterson collaborates with Stephan Pastis on a 3 strip sequence for charity.  HERE, HERE, and HERE. The full story is found on Pastis’ blog.

December 15, 2015 at 03:20PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1MfJwYZ December 15, 2015 at 03:20PM

December 15, 2015 at 12:41AM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1IRsup2 December 15, 2015 at 12:41AM

December 13, 2015 at 07:30AM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1I1E94O December 13, 2015 at 07:30AM

December 12, 2015 at 03:06PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1RhiPLi December 12, 2015 at 03:06PM

December 11, 2015 at 02:03PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1UenfRU December 11, 2015 at 02:03PM

December 10, 2015 at 10:17PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1NR4vCv December 10, 2015 at 10:17PM

December 10, 2015 at 12:43PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1jR5V88 December 10, 2015 at 12:43PM

December 08, 2015 at 12:59PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1lMLlan December 08, 2015 at 12:59PM