We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Using channel entries twice

How Do I?

adlix's avatar
adlix
7 posts
8 years ago
adlix's avatar adlix

Hi, my problem is a very easy use case and so I’m not sure where the problem is

I have an url /members-news/catgroup/url-title

My code is looking like this

{!-- Section with the single news --}
{exp:channel:entries channel="news" url_title="{segment_3}"}
{title}
{/exp:channel:entries}

{!-- 2nd Section with a list of teaser news  --}
{exp:channel:entries channel="news" category_group="10" limit="4"}
{title}

{/exp:channel:entries}

In my 2nd section I always get only the news from the first section nothing else. The news is in this category group. And I want to use entry_id=”not …” But this is “future drama” 😊 since this simple request doesn’t work.

Can anybody help me??! Thanks a lot.

Matthias

       
Derek Jones's avatar
Derek Jones
7,561 posts
8 years ago
Derek Jones's avatar Derek Jones

Try:

{exp:channel:entries channel="news" category_group="10" limit="4" dynamic="no"}

Ref: Channel Entries tag parameter dynamic=

       
adlix's avatar
adlix
7 posts
8 years ago
adlix's avatar adlix

Great this works fine! Thank you.

       
Derek Jones's avatar
Derek Jones
7,561 posts
8 years ago
Derek Jones's avatar Derek Jones

You bet!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.