2

Assuming I have this:

{exp:channel:entries 
    channel="news|tweets" 
    disable="member_data|pagination|trackbacks|categories|category_fields" 
    status="open" 
}

    <h2>{title}</h2>

{/exp:channel:entries}

Is there any way I can limit the results of each channel? For example 5 from tweets, 10 from news. I'm assuming not...

2
  • Maybe you can use the query module and write your own query for this?
    – Timo002
    Commented Feb 14, 2014 at 19:45
  • @Timo002 yes I think that, or a custom module that extends the core channel entries module.
    – Russ Back
    Commented Feb 17, 2014 at 7:55

1 Answer 1

2

Your assumption is correct. You cannot limit to "X" number from EACH defined channel. You can limit to "X" number from the COMBINED defined channels using the limit="X" parameter.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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