Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

How to display only those custom collection items with a specific category



Site URL: https://www.red.org/blog-2

On a custom collection page: https://www.red.org/blog-2 (password: test), I have the following snippet:

  <div class="b-slider">
    {.repeated section items}
      <div class="b-slider-slide">
        <a class="b-slider-link" href="{fullUrl}">
          <div class="b-slider-img-wrapper content-fill">
            <img class="b-slider-img" {@|image-meta} />
          <div class="b-slider-text">
            <div class="b-slider-text-inner">
              {.section categories}
                <h6 class="b-slider-article-category">{.repeated section @}{@}{.alternates with}, {.end}</h6>
              <h1 class="b-slider-article-title">{title}</h1>
              {.if updatedOn}
                <h6 class="b-slider-article-date">{updatedOn|date %B %e, %Y}</h6>
                <h6 class="b-slider-article-date">{addedOn|date %B %e, %Y}</h6>
          <div class="b-slider-overlay"></div>

Which displays all items in the collection. How can I limit which posts display to only those with a specific tag of "popular". If I do something like this:

{.repeated section categories}
  {.equal? @ "popular"}

    markup goes here


That seems to narrow the scope which prevents me from displaying the item's title, image, date, etc.

Any ideas?


Link to post
  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...