I have 6 entries which should show up, but when i use the code below it gives as return just three results. I think the problem is the category="not 3", does anybody has some experience with the category parameter?

       category="not 3" 
       sort="asc" dynamic="off"}

<li><a href="/{year}" data-toggle="tab">{year}
    <span class="badge badge-warning pull-right">{entries_in_year}</span></a>

As per the documentation, the category parameter isn't is available in Low Yearly Archives, but isn't documented.

However, the behaviour is the same as the native channel:entries tag, so you could be running into this:

When you use the category="3|4" parameter (not excluding), you are implicitly telling ExpressionEngine to only deal with entries that have been assigned one or more categories. If you have entries that haven’t been categorized then they will be ignored and not included in the results. However, if you are using exclusion (category="not 3|4"), then you will be shown all entries without those categories including those without any categories assigned.

See the docs on this.

So basically, defining category="not 3" will exclude entries that only have category 3. If an entry has category 3 and another category assigned, it won't be excluded.

  • Yeh i saw this later, but it is strange, because without category it returns 6 entries. So it does do something.
    – Eddyfever
    Feb 23 '13 at 18:30
  • Hah, you're right. Haven't looked at the code in a while. Seems there is a check for categories there. Will have to take a closer look then.
    – Low
    Feb 23 '13 at 21:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.