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)…

Read More

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…

Read More

Free resources for developers blog

By DJ Nickles

Free resources for developers blog

Read More

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.

Read More

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…

Read More

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…

Read More

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…

Read More

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…

Read More

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…

Read More

Calvin and Hobbs IFTTT

November 29, 2015 at 07:16AM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1MN4thr November 29, 2015 at 07:16AM

Read More

November 28, 2015 at 11:00PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1QN4Yfz November 28, 2015 at 11:00PM

Read More

November 26, 2015 at 12:02PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1jlPTTJ November 26, 2015 at 12:02PM

Read More

November 25, 2015 at 01:02PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1PPc8j8 November 25, 2015 at 01:02PM

Read More

November 25, 2015 at 12:44AM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1jj6uYb November 25, 2015 at 12:44AM

Read More

November 24, 2015 at 01:12PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1OqDglh November 24, 2015 at 01:12PM

Read More

November 22, 2015 at 07:31AM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1SSuxcG November 22, 2015 at 07:31AM

Read More

November 21, 2015 at 12:57PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1I3B184 November 21, 2015 at 12:57PM

Read More

November 20, 2015 at 12:34PM Today’s Calvin and Hobbs

By DJ Nickles

via Calvin and Hobbes Daily http://bit.ly/1lziFBY November 20, 2015 at 12:34PM

Read More