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

Photo

By DJ Nickles

via Calvin and Hobbes Daily http://calvinhobbesdaily.tumblr.com/post/38872994833

Read More

Merry Christmas, tumblr.

By DJ Nickles

via Calvin and Hobbes Daily http://calvinhobbesdaily.tumblr.com/post/38805964462

Read More

Photo

By DJ Nickles

via Calvin and Hobbes Daily http://calvinhobbesdaily.tumblr.com/post/38718040381

Read More

Photo

By DJ Nickles

via Calvin and Hobbes Daily http://calvinhobbesdaily.tumblr.com/post/38645005864

Read More

Photo

By DJ Nickles

via Calvin and Hobbes Daily http://calvinhobbesdaily.tumblr.com/post/38548793868

Read More

Photo

By DJ Nickles

via Calvin and Hobbes Daily http://calvinhobbesdaily.tumblr.com/post/38464283486

Read More