Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The name of the function that describes the component must be capitalized, otherwise the link to the component will not be created when transpiling from JSX
function Jo () {
return(
<div>
<h1>jojojojo</h1>
</div>
)
}
render(<Jo />, document.getElementById('root'))
if you understand correctly what non-standard is, then you need something like this
if(have_posts() ) {
$i = 0;
while( have_posts() ){
the_post();
if($i==0){
// выводим большую первую миниатюру и пост к ней
} elseif($i!=0 && $i<5){
// выводим правую колонку
} else {
// выводим остальное
}
$i++;
}
}
Of course you can! You just need to supply the correct arguments to WP_Query.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question