Tag Info

Hot answers tagged


Ok, worked it out via a little workaround. Add a new sorting function in Woocommerce, something like: https://gist.githubusercontent.com/bekarice/0df2b2d54d6ac8076f84/raw/wc-sort-by-postmeta.php works nicely, but remove the bit about meta values and keys since we're not sorting by custom fields (though that could be a good workaround too). Change the ...


Sometimes the easiest solution to this kind of problem is to use a meta data field in which you store the relevant value by which you want to sort. For "the stackexchange" you store "stackexhange" but for "mark kaplun" you just store "mark kaplun". This should be very trivial code to write. Once you have the sort values in place all that is left to do is ...


What you have does indeed sound more like production and development. General practice it that between these two the data only goes from production to development, but never the other way. Having true staging, you can push the data from to production, is challenging precisely for the reasons you describe. There are solutions around, but even those on ...


your callback function must be like this: function cienna_show_slider_callback() { global $post, $product, $woocommerce; // just in case if your template file need this ob_start(); ?> <?php woocommerce_get_template( 'archive-product.php'); ?> <?php $output = ob_get_contents(); ob_end_clean(); echo $output; die(); }

Only top voted, non community-wiki answers of a minimum length are eligible