ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

PROBLEM .. Displaying entries whose category is the same with the one of a specific page

January 18, 2012 6:43pm

Subscribe [1]
  • #1 / Jan 18, 2012 6:43pm

    Isthmos

    20 posts

    I have the following problem

    i click on an article in the site and i get the title, date, etc.

    I have somewhere in that page a list of entries whose category_id must be the same as the one of the article. How will i get the category_id from the article and how will i show this?

    My code

    {exp:channel:entries channel="news_articles" limit="3" disable="pagination" status="Open|Top Story|Secondary 4|Left Home|Right Home|Simple News" category="{category_id}” dynamic=“no”}

    {if_icons}{title}

    {/exp:channel:entries}

    any help?

  • #2 / Jan 18, 2012 7:43pm

    Isthmos

    20 posts

    Case closed ...

    related_categories_mode=“yes” was missing

    also

    custom_fields=“yes” dynamic=“no”

  • #3 / Jan 20, 2012 1:07pm

    Dan Decker

    7338 posts

    Hi Isthmos,

    I glad you were able to solve the issue for yourself! Thank you for sharing the solution. If you need anything else, just let us know in a new thread!

    Cheers!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases