Is this possible. I’ll try to explain what I’m doing. Maybe there is a better way. 😊
Below is some example code of a template I want to create. There are two channels, each with different data but they both use the same custom category group. The template group is the default for channel1. I want to be able to include entries from channel2 in the template below the channel1 content.
Can I capture the category from the entry in channel1 and use that as the category id for channel2?
<html>
<head>
<title>My cool EE website</title>
</head>
<body>
{exp:channel:entries channel="channel1" limit="1" }
<h1>{title}</h1>
{channel1-content}
{/exp:entries}
{exp:channel:entries channel="channel2" limit="5" category="{channel1-category-id}"}
{title}
{custom-field-1}
{custom-field-2}
{custom-field-3}
<hr >
{/exp:channel:entries}
</body>
</html>