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'];
Gravity Forms Media Upload Field for BuddyPress Complete Tutorial Gravity Forms Media Upload Field for BuddyPress is an WordPress addon for Gravity Forms, BuddyPress, Gravity Forms User Registration Add-On. Plugins mentioned is required before this plugin. It helps user to upload photo and cover photo with advance cropping of the image. You might interested to…
If this is happening on your end, try this troubleshooting. Check if your Gravity Form short code if is placed outside the wp_footer();. I guess the short code does not support any function outside the wp_footer();. You should put your Gravity Form short code before wp_footer();. Much better if it is placed on inside the…
function xselect( $table, $form = 0, $to = 9999 ){ return "SELECT {$table}.ID, {$table}.price,{$table}.model,{$table}.make, concat(make, ‘ ‘, model) AS makemodel FROM {$table} INNER JOIN wp_posts ON {$table}.ID = wp_posts.ID ORDER BY makemodel ASC LIMIT {$form}, {$to}"; } function xget_results( $table, $form, $to ){ global $wpdb; return $wpdb->get_results( xselect( $table, $form, $to ) ); }
Paste the following css to your style.css .ngg-gallery-thumbnail-box { margin: 5px .5%!important; width: 32.3%!important; } .ngg-gallery-thumbnail a { display: block; overflow: hidden; } .ngg-gallery-thumbnail a img { border: 1px solid #8eb83b!important; width: 95%!important; padding: 2%!important; margin: 0 auto!important; }
Create a simple user activation popup using the WordPress default layout. Commonly the activation link is display in home page. I have simple CSS/JQUERY to set your activation page into simple popup. See codes below. CSS codes: .gf-activation #content { position: fixed; top: 0; margin: auto; bottom: 0; left: 0; right: 0; z-index: 999999; text-align:…
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 );