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'];
WordPress page options resetting after pressing the enter keys and all of your settings go back to zero. This is usually this is happening when you create a custom page option in WordPress dashboard. The main reason is the reset button is declared ahead or coded before submit button. If you can see the `id=”reset”`…
Having trouble of this errors? Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/wwwcreat/public_html/wp-content/plugins/wp-post-corrector/wp_export.php on line 12 Warning: session_start() [function.session-start]: SAFE MODE Restriction in effect. The script whose uid is 610 is not allowed to access /tmp owned by uid 0 in /home/sitename/public_html/wp-content/plugins/custom-field-suite/includes/classes/form.php on line 42 Fatal error: session_start() [function.session-start]: Failed to…
Collection of Genesis header hooks and customization’s How to remove page title? add_action(‘get_header’,’remove_title’); function remove_title(){ remove_action( ‘genesis_entry_header’, ‘genesis_entry_header_markup_open’, 5 ); remove_action( ‘genesis_entry_header’, ‘genesis_do_post_title’ ); remove_action( ‘genesis_entry_header’, ‘genesis_entry_header_markup_close’, 15 ); }
Disable ui tabs menu $("#tabs").tabs("option","disabled", [0, 1]); // Option 1 $( "#tabs" ).tabs( "disable", "#tabs-2" ); // Option 2 $( ‘#tabs li.disabled-tab’ ).addClass( ‘ui-state-disabled’ ); // Option 3
Having trouble in Javo Directory WordPress theme? Currently the PHP class code that manage all the templating system of the Javo Directory WordPress theme. I’ll have a sample code on how to add new dashboard page using Javo Directory WordPress theme. In my case I’d like the `Add Listing` page to be displayed within dashboard…
The codes below suits on product subcategory looping. Get the custom field of every subcategory ( inside the loop ). $sub_title = get_field(‘sub_title’, ‘product_cat_’.$category->term_id); if( $sub_title != ” ){ echo $sub_title; } Get the check-box label text. $s_field = get_field_object(‘field_name’, $product->id ); $s_value = get_field(‘field_name’, $product->id ); $s_label = $s_field[’choices’][ $s_value ]; if( $s_label ){…