Сортировка рубрик в архиве WP (НЕТ)
add_filter( ‘get_terms_args’, ‘custom_terms_orderby’ );function custom_terms_orderby( $args ) {if ( isset( $args[‘taxonomy’] ) && $args[‘taxonomy’] == ‘category’ ) {$args[‘orderby’] = ‘term_order’;}return $args;} add_filter( ‘terms_clauses’, ‘custom_terms_orderby’, 10, 3 ); function custom_terms_orderby( $clauses,
Выравнимаем соседние блоки по высоте с помощью js
var mh = 0;$(«.foslick .manufacturer__name»).each(function () {var h_block = parseInt($(this).height());if(h_block > mh) {mh = h_block;};});$(«.foslick .manufacturer__name»).height(mh);var th = 0;$(«.table__blockflex.segundo»).each(function () {var h_block = $(this).height();if(h_block > th) {th = h_block;};});$(«.table__blockflex.segundo»).height(th);