Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <b:comment> Filter Posts By Label Name In Home Page Only && This Code Created By Abdelnaem Atia </b:comment>
- <div class='posts'>
- <b:loop values='data:view.isHomePage ? data:posts filter (p => p.labels any (l => l.name == "LabelName")) limit 5 : data:posts' var='post'>
- <h3><data:post.title/></h3>
- </b:loop>
- </div>
Add Comment
Please, Sign In to add comment