Hello everybody,
I need a solution for something that is not working in the way I want.
<h5>
Blogpost written by {exp:channel:entries channel="colleagues"}{title}{/exp:channel:entries}
</h5>
{exp:channel:entries channel="blog" dynamic="no"
author_id="{exp:channel:entries channel="colleagues"}{employee_id}{/exp:channel:entries}"}
{exp:channel_images:images entry_id="{entry_id}"}
<h1><a href="http://{title_permalink">{title}</a></h1>
{exp:excerpt limit="20"}{blog-artikel}{/exp:excerpt}...
{/exp:channel:entries}It’s the author_id where it goes wrong.
I tried a couples of things but none of them worked.
Any ideas?
Thanks.
You can’t use the channel entries tag the way you are using it. You should probably use PHP to store the employee id value. I am not sure how you have things setup but it seems like this could be a place to create a relationship and use ee’s built in relationship tags.
If you want to go the PHP route the code should look something like this:
Blogpost written by {exp:channel:entries channel="colleagues"}{title}
<?php $employee_id = '{employee_id}';?>
{/exp:channel:entries}
{exp:channel:entries channel="blog" dynamic="no" author_id='<?=$employee_id;?>'}
.......Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.