Welcome to WP Beaches

WordPress Websites design specialists, based in the Northern Beaches, Sydney Design, Develop, Host

Our Work

Recent Posts

Change WordPress Database Table Prefix Back To wp_

Wordpress Table Prefix

Here is how to change the WordPress database tables back to the default wp_ prefix.First thing is to change the php constant table prefix in wp-config.phpChange the wp-config.php constant$table_prefix = ‘wp_’;Change the table prefixes in phpMyAdminNext open your WordPress database…

Change Number of Posts Displaying on a Custom Post Type (CPT) Archive Page

Pre Get Posts Display

To change the number of posts that appear in an archive page for a custom post type you can change the number using the pre_get_posts action with some passed in parameters.Normally the number of posts displayed per page is defaulted…

Position WooCommerce Checkout Spinning Icon On Page

Woocommerce Spinning Loader Icon Checkout

WooCommerce checkout page uses a spinning loader icon while the page goes through a series of ajax refreshes throughout the checkout process.The spinning icon is a visual clue to the user to wait until it stops spinning that the page…

Hide WordPress Admin Toolbar Based On User Role

You can hide the WordPress admin toolbar to logged in users based on their user role and capabilities. First of all you can hide the toolbar on all front end pages from all users by adding to your functions.phpadd_filter( ‘show_admin_bar’,…

Add a banner based on Custom Taxonomy Term in a Beaver Themer Posts Module loop

Banner Custom Taxonomy Loop

How you can add a banner to a post in a loop in a Beaver Builder posts module using a custom layout based on a custom taxonomy term.First up is to create you Custom Taxonomy either with a plugin or…

Use 7G WAF Firewall with OpenLiteSpeed on a RunCloud instance

Ols 7g

You can use the 7G WAF FIrewall from Jeff Starr at Perishable Press with a web app running on top of OpenLiteSpeed using htaccess at the server level. This can also be used on a RunCloud OLS server (they already…

Block xmlrpc.php WordPress running on OpenLiteSpeed using .htaccess

Block Xmlrpc Open Litespeed

You can block the xmlrpc.php WordPress file when running on OpenLiteSpeed by adding a rewrite rule in the .htaccess file. This will reduce the brute force threat of bots making multiple resource requests.Add to your webroot .htaccess file either add…

Block wp-login.php and xmlrpc.php via fail2ban on RunCloud

Fail2ban Wordpress Runcloud

How to ban IP addresses that are brute forcing your wp-login.php and xmlrpc.php on a WordPress install with fail2ban on a RunCloud server. Email yourself any fail2ban IP addresses.Add a WordPress fail2ban filterCreate a wordpress.conf file in /etc/fail2ban/filter.d/[Definition] failregex =…

Output a Custom Taxonomy Archive by using Loop in WordPress

Output Custom Taxonomy Terms

You can’t use a WordPress archive taxonomy page for a custom taxonomy as the custom terms are the archive – but you may want a sort of global taxonomy page that contains all the custom terms.Here is a custom taxonomy…