$(document).ready(function(){
$('.wrapper').on('click', function(e) {
if (e.target === this)
$('.other-wrapper').slideToggle();
});
});
<div class="btn">
<button id="1">1</button>
<button id="2">2</button>
<button id="3">3</button>
</div>
<ul class="list" data-id="1">
<li>...</li>
</ul>
<ul class="list" data-id="2">
<li>...</li>
</ul>
<ul class="list" data-id="3">
<li>...</li>
</ul>
window.onload = function () {
let btnGroup = document.querySelector(".btn");
let lists = document.querySelectorAll(".list");
btnGroup.addEventListener("click", function(e){
e.preventDefault();
[].slice.call(lists).forEach(function(it){
it.classList.add("hide");
})
let id = e.target.id;
let ul = document.querySelector('[data-id="'+id+'"]');
ul.classList.remove('hide');
});
}
$childrens = get_children( array(
'post_parent' => id страницы родителя,
'post_type' => 'page',
'numberposts' => -1,
'post_status' => 'publish'
) );
ob_start();
blablabla
wp_editor();
blabla
$html = ob_get_contents();
ob_clean();
echo $html;
if(i === 1) $tags = get_the_tags(get_the_ID());
get_posts( array("tag__in" => array(tags[0]->term_id)) );
$answers = [1,2,3,4,5];
$shuffledAnswers = shuffle($answers);
echo $shuffledAnswers[0];