@echo off
taskkill /f /im explorer.exe
timeout /t 2 /nobreak >nul
if not exist "%UserProfile%\Music" mkdir "%UserProfile%\Music"
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Music" /t REG_SZ /d "C:\Users\%USERNAME%\Music" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "{A0C69A99-21C8-4671-8703-7934162FCF1D}" /t REG_EXPAND_SZ /d %%USERPROFILE%%"\Music" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "My Music" /t REG_EXPAND_SZ /d %%USERPROFILE%%"\Music" /f
attrib +r -s -h "%USERPROFILE%\Music" /S /D
timeout /t 1 /nobreak >nul
start explorer.exe
<?php
/*
Template Name: ПостСтраница
Template Post Type: post, pages
*/
?>
<?php get_header(); ?>
<main class="main">
<?php get_template_part('components/mainContentRecords') ?>
</main>
<?php get_footer(); ?>
<?php
/*
Template Name: polygraphy
*/
?>
<?php 'get_header'(); ?>
<main class="main ">
<?php get_template_part('components/mainContentRed') ?>
<div class="section">
<?php
$my_posts = get_posts( array(
'numberposts' => -1,
'category_name' => 'polygraphy',
'orderby' => 'date',
'order' => 'ASC',
'include' => array(),
'exclude' => array(),
'meta_key' => '',
'meta_value' =>'',
'post_type' => 'post',
'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса
) );
foreach( $my_posts as $post ){
setup_postdata( $post );
?>
<?php get_template_part('components/card') ?>
<?php
}
wp_reset_postdata(); // сброс
?>
</div>
</main>
<?php 'get_footer'(); ?>