https://firstvds.ru/blog/rezervnoe-kopirovanie-na-linux
Автор: wiki2_promos
Custom Post type & Taxonomy URL structure
https://wordpress.stackexchange.com/questions/294003/custom-post-type-taxonomy-url-structure
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
add_action( 'init', 'register_sps_products_post_type' ); function register_sps_products_post_type() { register_post_type( 'sps-product', array( 'labels' => array( 'name' => 'Products', 'menu_name' => 'Product Manager', 'singular_name' => 'Product', 'all_items' => 'All Products' ), 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'comments', 'post-formats', 'revisions' ), 'hierarchical' => false, 'has_archive' => 'products', 'taxonomies' => array('product-category'), 'rewrite' => array( 'slug' => 'products/%product_category%', 'hierarchical' => true, 'with_front' => false ) ) ); register_taxonomy( 'product-category', array( 'sps-product' ), array( 'labels' => array( 'name' => 'Product Categories', 'menu_name' => 'Product Categories', 'singular_name' => 'Product Category', 'all_items' => 'All Categories' ), 'public' => true, 'hierarchical' => true, 'show_ui' => true, 'rewrite' => array( 'slug' => 'products', 'hierarchical' => true, 'with_front' => false ), ) ); } |
Как прижать footer к низу экрана?
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<body> <div class="wrapper"> <header></header> <main></main> <footer></footer> </div> </body> /*css*/ <span class="hljs-selector-tag">html</span>, <span class="hljs-selector-tag">body</span> { <span class="hljs-attribute">height</span>: <span class="hljs-number">100%</span>; } <span class="hljs-selector-class">.wrapper</span> { <span class="hljs-attribute">display</span>: flex; <span class="hljs-attribute">flex-direction</span>: column; <span class="hljs-attribute">min-height</span>: <span class="hljs-number">100vh</span>; } <span class="hljs-selector-tag">main</span> { <span class="hljs-attribute">flex</span>: <span class="hljs-number">1</span>; } |
WordPress with FASTPANEL
https://rutube.ru/video/e42fc6fb498287bc72c1e560a522ee0d/
Универсальный календарь
https://vanilla-calendar.pro/ru
swiper вертикальный слайдер
Источник https://codepen.io/danishlaeeq/pen/RwyQJaW
wp all import param@name
Чтобы срабатывал параметр {param[@name=»Артикул предложения»]} нужно в function.php
|
1 2 3 4 |
function roomble_is_xml_preprocess_enabled( $is_enabled ) { return false; } add_filter( 'is_xml_preprocess_enabled', 'roomble_is_xml_preprocess_enabled', 10, 1 ); |
Scroll Reveal Animation GSAP
Как откатить версию WordPress
Как в modx очистить кеш?
|
1 |
<link rel="stylesheet" href="/assets/template/css/styles.css?v=1.1"> |
MODX. Получение полей родительских, прародительских и прочих ресурсов
https://www.riwkus.ru/notes/web/back-end/modx/getting-fields-of-parent-and-grandparent-resources.html
Список всех сервисов и приложений
https://albato.ru/apps