How to add condition in wordpress loop? [closed]
You don’t even need to write a conditional. This can be done by CSS. Let’s have a simple example. Assuming your post’s structure is like this: <div class=”container-class”> <p> <img src=”https://wordpress.stackexchange.com/questions/275291/some-path”/> Some text </p> </div> You can set a rule to float the first image to left, and the second one to right: .container-class img{ … Read more