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

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

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

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

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

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

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

WooCommerce does not provide a woocommerce image gallery shortcode to be used in Beaver Builder Themer or other page builders. But sometimes you want to develop a different WooCommerce template that places the featured image gallery in a different location than the default. You can add the following code to your child theme’s functions.php file.…

Read More