I wonder if it’s possible to list posts only by their first tag in order to avoid repetitions on the homepage using the mostly used handlebars.
So if we have four articles tagged like (1) #love
, (2) #love #fun
, (3) #fun #love
and (4) #music
:
- #love will show posts (1) and (2)
- #fun will show (3)
- #music show (4)
Is that possible? :)
Yes. What theme? Can you edit it?
2 Likes
Oh, sure. I like to use Headline or Basho, one from the Core Team and other from a third party dev.
I like to learn and customize myself. Thanks!
Right, so if you take a look at headline, it’s already basically set to do that. You’ll just need to adjust the get request filter attribute to be looking for primary_tag, instead of tag. (I suspect Basho is similar.)
1 Like
Thanks for your reply but that’s not seems to work for my usecase.
Currently if we chose to display tags on our homepage, the articles or posts are repeated between them.
Using primary_tag
leaves a lot of them outside the scope because one use the primary_tag
for give proper context and then secondaries to complete the tagging scheme.
It seems that a new helper o function that hides repeated articles is needed for complete this approach.
Javascript tricks are not good on the long run.