D
D
Daniil Kondratovich2016-09-10 15:32:19
PHP
Daniil Kondratovich, 2016-09-10 15:32:19

How is this output implemented in the backend?

Hello everyone.
I've been scratching my head for a long time how dynamic content is output from the backend to this kind of layouts:
Lavishustring
Envi
If the layout is static, then, of course, it's easy to make such an arrangement of blocks with ordinary css. But how to make such a conclusion, say, if you need to display products or articles that change every day?
Thoughts are as follows. Within the same WordPress, you can define labels for each position in the layout, and simply assign them to articles. But, in my opinion, it is, to put it mildly, inflexible and inconvenient. On pure css, it is possible to fool around with nth-child, but the option, of course, is also dubious. If you saw the engine yourself, you can probably write an algorithm that automatically distributes articles to each container predefined in the layout.
It is interesting to know how professionals implement it? Are there any better ways than what I suggested?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Omelchenko, 2016-09-10
@ktulxu

Not a professional. They simply display blocks, according to the desired condition, and that's it. What is there to puzzle over? =)
The usual cycle with the substitution of the necessary templates, for alignment.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question