{"id":1932,"date":"2024-07-10T06:55:17","date_gmt":"2024-07-10T06:55:17","guid":{"rendered":"https:\/\/helpcenter.greyd.io\/2023\/11\/20\/highlight-a-post-in-query-loop\/"},"modified":"2024-12-26T18:27:42","modified_gmt":"2024-12-26T17:27:42","slug":"highlight-a-post-in-query-loop","status":"publish","type":"post","link":"https:\/\/helpcenter.greyd.io\/highlight-a-post-in-query-loop\/","title":{"rendered":"How can I have several layouts \/ designs in one post overview?"},"content":{"rendered":"
With the Post Overview or Query Loop block, you can flexibly display posts – as a table, grid or list. In combination with Conditional Content, you can also visually highlight individual posts and\/or work with different layouts within one post overview. To do this, simply add the Conditional Content block twice in your query loop. <\/p>\n
<\/p>\n
Example 1<\/b>: Alternating Layouts – Video \/ Text left or right<\/p>\n
<\/p>\n
To make your query loop alternate two different layouts, select "index of the current post" as your condition. In one of your conditional content blocks select "is even" and in the other "is odd". Then place the respective post templates (one with the video on the left and one with the video on the right) within your conditional content container.<\/p>\n