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...

  • Maybe you can use the query module and write your own query for this? – Timo002 Feb 14 '14 at 19:45
  • @Timo002 yes I think that, or a custom module that extends the core channel entries module. – Russ Back Feb 17 '14 at 7:55
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.

| improve this answer | |

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.