Product categories WordPress codex
How to get current product category slug?
global $wp_query; echo $wp_query->query_vars['product_cat'];
How to get current product category slug?
global $wp_query; echo $wp_query->query_vars['product_cat'];
Re-register the default genesis sidebar into your function.php. See the image above for html output. genesis_register_sidebar( array( 'id' => 'sidebar', 'name' => __( 'Primary Sidebar', 'genesis' ), 'before' => '<div id="%1$s" class="widget %2$s">', 'after' => '</div></div>', 'before_title' => '<h4 class="widget-title widgettitle">', 'after_title' => '</h4><div class="widget-inner">' ) );
If you encountered the same error just like the image above, just follow this instructions. Steps: 1. Open your cpanel and look for /wp-admin/ folder. 2. Create a file and name it to .user.ini. 3. Copy the codes below and save the file. max_input_vars = 5000; max_execution_time = 180; 4. Make sure to switch your…
Question: How to use WDES Responsive popup in revolution slider? Answer: You can add a new layer in revslider and put the “[wdes-popup-title id=”popup_id”] ” inside the new layer. Place the “[wdes-popup-content id=”569″]” in the footer or in the page editor.
Check the links below for references to answer the question “How to redirect WordPress login/logout to custom page?” Use this https://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect for login redirect. Use this https://codex.wordpress.org/Plugin_API/Filter_Reference/logout_url for logout redirect.
How to set up woocommerce product retail map discount? Copy and paste the codes below to your functions.php Note: to get the $retail_map, make sure you have retail_map key in each products. You can add custom fields with the name retail_map and put a value. function woocommerce_get_custom_price($price, $product){ $reg_price = get_post_meta( $product->id, '_regular_price', true );…