Welcome to WP Beaches
WordPress Websites design specialists, based in the Northern Beaches, Sydney
Design, Develop, Host
RECENT POSTS
Set up WordPress cron to run via server cron in cPanel, Cloudways and RunCloud
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,…
Add and install PHP to macOS Monterey 12 with Homebrew
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
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
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
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…
Completely hide WooCommerce products from shop, product search and WordPress search
You can hide a WooCommerce product from the shop page and product search by choosing ‘Hidden’ in the ‘Catalog visibility’ options from the Publish metabox on a product page in the backend. This is good and it hides the product as advertised from the shop and product search results but the product is still visible…
How to compress and uncompress files and folders in the Terminal in macOS Monterey
Since macOS is based on Unix there are a number of ways to compress files and folders within the filing system using Unix based application code, below are a few options using the Terminal or command line interface (cli). The default command line application interface in macOS is the Terminal and is stored in /Applications/Utilities….
Set noindex nofollow on posts from specific category using Yoast WordPress SEO
Using the Yoast WordPress SEO filter wpseo_robots filter you can set posts from a specific category to have the meta tag set with noindex/nofollow. add_filter( ‘wpseo_robots’, ‘yoast_seo_robots_remove_single’ ); /** * Set certain posts to noindex nofollow */ function yoast_seo_robots_remove_single( $robots ) { if ( is_single() && has_term( ‘uncategorized’, ‘category’ ) ) { return ‘noindex,nofollow’; }…