the_field( 'image', 'category_' . $category_id );
А может кто-то скажет, что я ерундой занимаюсь?
'< br >< br >< br >Lorem ipsum...< br >'.replace(/(<\s?br\s?>){2,}/g,'< br >')
<div class="bubble">
<div class="bubble-in">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Fugit ipsa quisquam deserunt rerum repellendus consequuntur iste inventore et dolorum natus. Suscipit saepe facilis fugit reprehenderit earum. Quibusdam expedita iusto mollitia!
</div>
</div>
.bubble {
width: 300px;
border-radius: 15px;
border: 3px solid #1AA0D2;
display: inline-block;
position: relative;
}
.bubble::after {
content: '';
width: 39px;
height: 50px;
border-left: 3px solid #1AA0D2;
border-bottom: 5px solid #1AA0D2;
position: absolute;
bottom: -20px;
left: 40px;
background: white;
transform: skewX(-30deg) skewY(-48deg);
}
.bubble-in {
border-radius: 12px;
padding: 30px;
background: white;
position: relative;
z-index: 2;
}
<div class="wrapper"></div>
body,html {
width: 100%;
height: 100%;
}
.wrapper {
width: 100%;
height: 100%;
transition: background 1s;
background: none;
}
(function (w, d) {
w.onload = function () {
var wp = d.querySelector('.wrapper'),
colors = ['yellow', 'red', 'green', 'blue'],
ln = colors.length;
var changeColor = function (i) {
if (i < ln) {
setTimeout(function () {
wp.style.cssText = "background: " + colors[i] +";";
i++;
changeColor(i);
}, 2000);
} else {
changeColor(0);
}
};
changeColor(0);
};
}(window, document));
$.each(json, function(i, object) {
if (object.id == 88) {
alert(object.alias);
return;
}
});