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'];
Dequeue or deregister a style or script of JS Composer WordPress plugin using your current theme functions.php. Paste the codes below. <link rel='stylesheet' id='js_composer_front-css' href='http://mytravelpersonality.com/temp/wp-content/plugins/js_composer/assets/css/js_composer.min.css?ver=5.0.1' type='text/css' media='all' /> <script type='text/javascript' src='http://mytravelpersonality.com/temp/wp-content/plugins/js_composer/assets/js/dist/js_composer_front.min.js?ver=5.0.1'></script> add_filter( 'vc_shortcode_output', 'anton_vc_shortcode_output', 10, 4 ); function anton_vc_shortcode_output($output, $xx, $atts ){ wp_dequeue_style( 'js_composer_front' ); wp_dequeue_script( 'wpb_composer_front_js' ); return $output; }
How to create domain name folder in file manager? Just find the “Add ON Domains” in domains sections.
Hi guys, having a trouble on how to merge your personal and friends activity stream using Buddypress WordPress plugin? Codes below may help you to solve the issue. The codes will apply only in your personal activity but it is includes the friends activity also. $user_id = '1,2,3'; // this is the list of user…
How to add a notice on WordPress Dashboard? function wdes_responsive_tool_1_discounted_add_ons() { ?> <div class="notice notice-success is-dismissible wdes-responsive-tool-1-discounted-add-ons"> <h3>WDES Responsive Tool 1</h3> <p>Get a <strong><a href="http://www.WDES Responsive Tool 1.com/purchase/" target="_blank">discount on Pro Version(20%) and Complete Version(30%) !</a></strong></p> </div> <?php } add_action( 'admin_notices', 'wdes_responsive_tool_1_discounted_add_ons' );
How to control the post displayed on a specific category? You can solve this problem by simply copy the codes below on your functions.php file. function category_blog_posts_per_page( $query ) { if ( is_admin() || ! $query->is_main_query() ){ return; } if( is_category( 1 ) ){ $query->set( 'posts_per_page', 15 ); } } add_action( 'pre_get_posts', 'category_blog_posts_per_page', 1 );
Warning: rmdir( … ), No such file or directory Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/username/public_html/wp-includes/meta.php on line 1078 You might interested to check this error master Gravity Forms Media Upload Field for BuddyPress Complete Tutorial Also offering hosting and domain registration, chep but trusted –…