Welcome to WP Beaches

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

RECENT POSTS

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 loop code snippet, which allows you to output a set of custom taxonomy terms…

Keep WordPress database leaner by removing autoloaded options from wp_options table

wp-options-loaded

In WordPress a number of autoloaded options are loaded on every page, this gathers over time with deleted themes, plugins etc and can slow down a site. Typically most options that are installed in the database are permanently stored. These options which are autoloaded are loaded on very WordPress page. To see the total size…

Change WooCommerce Checkout Page To A 2-Column Layout

Woocommerce Checkout Layout

The default WooCommerce checkout page layout doesn’t make great use of a 2nd right hand column and looks a bit disjointed. Here is some CSS that can push the product order data to the 2nd column balancing the layout more evenly, making for a better user experience whilst checking out. The CSS kicks in at…

Set up WordPress cron to run via server cron in cPanel, Cloudways and RunCloud

Cron WordPress

By default the WordPress tasks that have been set up to run with wp-cron.php only run when a WordPress page is visited by a user, if the site has low traffic then tasks make take a while to action, if the site is high traffic and has caching then this can also cause reliability issues,…

Flush DNS cache locally in macOS Monterey, Big Sur, OSX, Linux and Windows

Dns Clear Cache

When URLs are just not resolving the way you want, it may be time to time to clear or flush the DNS nameserver local cache – enter the relevant command in the Terminal/command line for the macOS operating system you are on. How to flush the local DNS cache macOS Monterey 12.0.0 sudo dscacheutil -flushcache;…

Add and install PHP to macOS Monterey 12 with Homebrew

Php8 Macos Update

The latest macOS version Monterey 12 has removed PHP altogether from its operating system, there is a comment in the Apache config file httpd.conf that says: #PHP was deprecated in macOS 11 and removed from macOS 12 Fortunately you can install PHP and all the different PHP versions including 5.7, 7.4 and 8 with some…

Enable the root user in macOS Monterey and earlier macOS versions

Enable Macos Root User

Here is how you enable the root user in macOS Monterey and earlier macOS versions, the macOS root user is disabled by default when the OS is installed. As an admin user launch System Preferences from the Apple Menu and go to the User and Groups pane, you will need to authenticate first by clicking on the padlock icon down the bottom left, then…

Using wp-cli commands to create and import WordPress databases

Commands Wpcli WordPress Tables

You can use wp-cli to do a number of tasks around the WordPress database including creation and importing, below are a few commands and what they do. Remove all existing WordPress tables wp db reset This will remove all existing WordPress tables and leave the db empty, but you still have a db. Delete the…

Reset Forgotten Admin Password on macOS Monterey and macOS Big Sur

Macos Forgot Password

The passwords for all accounts on macOS Monterey 12, Big Sur 11.2, Catalina, Mojave, macOS High Sierra and Sierra, OSX 10.11 El Capitan, OSX 10.10 Yosemite, OSX 10.9 Mavericks and OSX 10.8 Mountain Lion including admin and standard user accounts can be reset and changed when booted from the Recovery Partition on macOS. Boot into…