During a recent build using Gutenberg editor, I needed to check the output of custom fields in a post as the fields weren’t displaying when getting called. To output all custom fields in a post loop, you can use this handy snippet to show all fields and it’s data. This also works for ACF (which … Continued
So this one stumped me for a little while. I built a site for a client who wanted to use Advanced Custom Fields flexible content layouts to build content on a page. One of those layouts was an accordion, which was built using an ACF repeater. So far, all good. However, the client needs to … Continued
Fix for Magento issue: (SQLSTATE: Numeric value out of range: 1690 BIGINT UNSIGNED value is out of range in (DB_NAME.q.items_count – 1)
By finding this page, you most likely have had the same issue when trying to delete products, real or dummy in a new Magento install. The error when attempting to delete products from the admin section. The error message in the admin: How to Fix: 1. Go into your database using PhpMyAdmin. 2. Do a … Continued
If your store offers multiple shipping methods to your customers, it’s important to align all shippers to use the same unit for weight. This is becuase weight in Magento is not actually a particular unit. Weight to Magento is just a number, so theoretically, could be grams, kilograms, pounds, tonnes, you name it. Realistically, you … Continued
This snippet wraps around your homepage-specific code in order to only display when on the homepage of your store. The ‘home’ identifier may be different for your site so amend as necessary.
Here’s a little snippet which I sometimes use in my footer during development. It basically checks how many db queries are made when the page loads and how long those queries took to retrieve and display. Very handy if you are performance-oriented and need to check performance of 3rd-party plugins. Once added, refresh the page … Continued