Kategória oldal ABC sorrendben

functions.php-ba kell másolni add_action( ‘pre_get_posts’, ‘my_change_sort_order’); function my_change_sort_order($query){ if(is_archive()): //If you wanted it for the archive of a custom post type use: is_post_type_archive( $post_type ) //Set...

On sale felirat %

add_filter( ‘woocommerce_sale_flash’, ‘add_percentage_to_sale_badge’, 20, 3 ); function add_percentage_to_sale_badge( $html, $post, $product ) { if( $product->is_type(‘variable’)){ $percentages = array(); // Get all variation prices...

Exclude Pages from Search

//Exclude pages from WordPress Search if (!is_admin()) { function wpb_search_filter($query) { if ($query->is_search) { $query->set(‘post_type’, ‘post’); } return $query; } add_filter(‘pre_get_posts’,’wpb_search_filter’);...