Tell us what you are trying to do?
I'm creating a View that will list a custom post type. I want the first element of the list to have a different markup than the rest of the list. This way I can show it as a feature, highlighting it.
I have built this using the Toolset View plugin in the past, but I would like to use the new Toolset Block plugin for a new website I'm building.
With Views, I would create something like the following, using [wpv-item index=1]
```
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop wrap="4" pad="true">
[wpv-item index=1]
```
I could not find where I would place the conditions, or similar code with Blocks.
Does Blocks offer a way to enter the code for the loop?
Is there any documentation that you are following?
https://toolset.com/forums/topic/featured-post-in-grid-styled-differently/
What is the link to your site?
versteckter Link

Minesh
Unterstützer
Sprachen:
Englisch (English )
Zeitzone:
Asia/Kolkata (GMT+05:30)
Hello. Thank you for contacting the Toolset support.
You can use the conditional block to compare specific loop index.
Here is the post that shows how you can use conditional block to target specific item of your view's loop using block:
=> https://toolset.com/2021/08/5-advanced-uses-of-toolsets-conditional-block-in-wordpress/#display-additional-information-only-for-the-first-item