Welcome to WP Beaches
WordPress Websites design specialists, based in the Northern Beaches, Sydney
Design, Develop, Host
RECENT POSTS
Override the Beaver Builder Global Settings Including Media Query Breakpoints
Beaver Builder Global Settings can be overridden including the Media Query breakpoints via the Tools > Global Settings in the Beaver Builder interface. If you have a starter theme you can permanently override these settings by using the fl_builder_register_settings_form filter which will allow you to set the modified global settings permanently so you don’t…
Displaying Featured Products in WooCommerce
WooCommerce has products called Featured Products which are products what become featured when they are starred in the WP Admin dashboard. Here is how you can display them. Featured Products Shortcode Display WooCommerce Featured Products via shortcode like so: Other parameters you can use in the shortcode are ‘orderby‘ and ‘order‘. Featured Products Custom…
Add WooCommerce Product Category Dropdown to Shop & Archive Pages
WooCommerce has a Product Category dropdown list of available product categories which filter and refresh the page based on product selection. It is assigned via a Widget and easy enough to put in the sidebar. But what about adding it to the top of the main shop and archive pages.? Here is a way…
Change WooCommerce Price to be by Weight
You can change the WooCommerce price to be by weight by appending some text after the actual price such as ‘per kg’, this can be done by manipulating 3 filters that display the price in the shop/product page, cart and checkout pages; woocommerce_get_price_html woocommerce_cart_item_price woocommerce_checkout_cart_item_quantity If all items were to be classified as ‘per kg‘…
Hide Amount of Items from Add to Cart Message in WooCommerce
Need to hide the amount of items added to the cart in the success message that appears after adding an item in WooCommerce, the wc_add_to_cart_message_html filter has you covered. Add the below code snippet to your functions.php View the code on Gist. On line 24 a ternary operator has been removed which displayed the quantity if greater…
WordPress Custom Fields Missing When ACF is Active
When the plugin ACF or ACF Pro 5.6.0 is active the native WordPress Custom Fields on post, pages or CPTs is not visible and gone missing. If you disable the ACF plugin the custom fields are visible again. The functionality to hide the WordPress custom fields was introduced in ACF version 5.5.13 but then made…
Get an Array of Values from an ACF Repeater Choice SubField
Get an array of values from an ACF repeater sub-field choice box to use further in your code. So in the sap_colors sub-field above I want to capture the red,blue and green values into an array and have that array reflect any further additions or deletions. You can get this via get_sub_field_object() function and you have…
Adding & Sorting ACF Repeater Field Data into Responsive Tabs
Using responsive tabs and ACF repeater field you can present a clean easy to use client back end field submission in the WP Admin dashboard that can sort repeater field data into appropriate tabbed content. The front end display to the end user is intuitive and fast. The 2 links above describe how to set up…