M
M
moslem2015-08-15 13:28:24
React
moslem, 2015-08-15 13:28:24

Custom display of entries in the category page, how to implement?

Here I am attaching a layout
fe37e3c5517e4e28829e3f7a877f7a11.png
How can I implement this, has anyone dealt with such a task?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vladimir, 2019-02-09
@lancehokage

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'))

D
Dmitry, 2015-08-16
@dimasmagadan

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++;
}
}

the algorithm is something like this.
well, you will need to add a check to display the boundary sections of the layout.

M
Maxim, 2015-08-15
@Qumbeez

Of course you can! You just need to supply the correct arguments to WP_Query.

M
Marat, 2015-08-15
@7kmarat

Different thumbnail sizes on homepage?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question