This question may be related to a resolved thread.
I found a solution to using a switch statement for rows on a related enrty. I can’t find the post I learned it from, but the code is below. They used php and set the template to parse php on the output in the admin.
</p>
<p>{reverse_related_entries orderby="date"}</p>
<p>{if count =="1"}</p>
<p><div align=“center”><br />
<table width=“920”><br />
{/if}<br />
<?php<br />
$columns = 4;<br />
$i= {count}-1;<br />
if($i % $columns == 0) {<br />
echo "<tr>\n"; //if there is no remainder, start new row<br />
}<br />
?><br />
<td><br />
<a href="http://{channel_field}" target="blank" rel="noopener">_{channel_field}</a></p>
<p><span class="smalltext">{title}</span><br />
Creation date: {channel_field}</p>
<p>{channel_field2}<br />
</td><br />
<?php<br />
if(($i % $columns) == ($columns - 1) || ($i + 1) == {total_results}) {<br />
//if there is a remainder of 1 or no results left, end the row<br />
echo "</tr>\n";<br />
}<br />
?><br />
{if count == total_results}<br />
</table><br />
{/if}</p>
<p>{/reverse_related_entries}</p>
<p>
Works great for me, I can now do
img1 img2 img3
Thanks!!