Let's continue working with the Wordpress cycle. Sometimes posts need to be displayed
in different formats on the same page. For example, one post is full-width, and another is only half-width. One post has an image, and the other doesn't.
But what if I don't want to make two different database queries? It's simple: make one database query, and then display the posts in different formats using if() or switch() functions. A basic understanding of PHP is required here, as in other areas.
We'll also talk about post thumbnails. The thing is, when we upload one large photo to the admin panel, Wordpress creates seven copies of it: small, medium, medium-medium, large, and so on. This is necessary to display small images where they're needed, saving user traffic.
But this doesn't save any server space, and we pay for that. Therefore, it's better to optimize thumbnails and load only the most necessary ones. Disable the rest. That's what we'll do.
__
These are recordings of our recently completed, private, paid WordPress course. We've decided to make the video lessons freely available on YouTube.
However, we haven't made the assignments, materials, source code, or final project available. If you'd like to access the full course, please follow this link: https://glo-academy.org/wordpress_dev...