Reposition WooCommerce breadcrumb outside of wrapper content

Ok I seem to have got it working. I added this in the functions file… //Reposition WooCommerce breadcrumb function woocommerce_remove_breadcrumb(){ remove_action( ‘woocommerce_before_main_content’, ‘woocommerce_breadcrumb’, 20 ); } add_action( ‘woocommerce_before_main_content’, ‘woocommerce_remove_breadcrumb’ ); function woocommerce_custom_breadcrumb(){ woocommerce_breadcrumb(); } add_action( ‘woo_custom_breadcrumb’, ‘woocommerce_custom_breadcrumb’ ); Then added… do_action(‘woo_custom_breadcrumb’); …where I wanted the breadcrumb to show.

WooCommerce: List All Categories

taken from that very same function: // prior to wordpress 4.5.0 $args = array( ‘number’ => $number, ‘orderby’ => $orderby, ‘order’ => $order, ‘hide_empty’ => $hide_empty, ‘include’ => $ids ); $product_categories = get_terms( ‘product_cat’, $args ); // since wordpress 4.5.0 $args = array( ‘taxonomy’ => “product_cat”, ‘number’ => $number, ‘orderby’ => $orderby, ‘order’ => $order, … Read more

is_plugin_active() returning false on active plugin

is_plugin_active() expects just the base name of the plugin as parameter: So use: is_plugin_active( ‘woocommerce/woocommerce.php’ ); The function will use the option ‘active_plugins’ which is a list of plugins paths relative to the plugin directory already. On a multi-site installation it will search in get_site_option( ‘active_sitewide_plugins’) too. As an implementation note: Avoid these checks. Some … Read more

WooCommerce store with ~30,000 products [closed]

I hate to mention this on WordPress.Stackexchange, but I would go with using Magento in place of WordPress. I love WordPress and use it on almost every website that I build, but it was not specifically made for e-commerce. Magento handles just about everything better in regards to e-commerce. I only tend to use WordPress … Read more

run silex or slim with wordpress

There’s little that you can do with the Silex server that can’t be done through WordPress but it takes a bit of effort to get WP to respond to AJAX calls. The first step is to make the call available through AJAX. This requires adding a line to your functions.php file similar to add_action(‘wp_ajax_my_ajax_call’, ‘onno_update_my_ajax_call’); … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)