A handy function to easily add classes to columns by taking the current record counter and returning a list of classes which match the current counter.
How to extend WooCommerce product search functionality to search in the product description and custom fields, instead of the basic woocommerce search which just searches products by their title.
When working on a recent project i needed to display a custom post_type in a specific order, to do this we need to hook into the main wordpress for the post or custom post_types archive and override the default arguments with our custom order and any other parameters we wish to change.
WooCommerce comes with the ability to set featured products along with the option to display them as a list using a Wordpress shortcode. This article will show you how to add a new shortcode to WooCommerce to display a list of categories and the featured products within these categories.
This snippet of code shows you how to change the structure of your WordPress URL’s from /your-post-slug to /blog/your-post-slug without changing other post types URL, by creating a rewrite rule and modifying the output of the_permalink() and get_permalink().