Output All Custom Field Data In A Loop – Including ACF Fields

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

Change default weight unit for FedEx shipping in Magento

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

Check if homepage with PHP in Magento

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.

Check WordPress Database Queries

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