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…
Read MoreAdd 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…
Read MoreAdjusting WooCommerce Price Description with ACF Custom Field
Using a simple ACF field you can adjust the WooCommerce pricing type per item with a dropdown selection that will display after the price in the product, shop, cart and checkout page. Create a select dropdown in ACF. This example the field is named product_price_type and has 3 values/choices (use as many as you like)…
Read MoreChange 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‘…
Read MoreHide 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…
Read MoreWordPress 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…
Read MoreGet 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…
Read MoreAdding & 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…
Read MoreFixing BuddyPress Profile Page CSS on a Genesis Theme
When you look at a BuddyPress profile page on a full width page with no sidebar when using a WordPress default theme like Twenty Sixteen it looks a lot better than when viewing in a Genesis starter theme… So out of the box the Genesis theme loses the navigation layout structure of…
Read MoreAdd WooCommerce Add to Cart Button to Menu with Offscreen content like Outfitter Pro
This is a guide to add a WooCommerce Add to Cart button icon to a main menu with a toggle effect that displays added shop items in a mini-cart in an overlay. This is offscreen content displayed and closed on click, this is how the new Outfitter Pro theme uses it, in this guide it is…
Read More