Jump to content

Custom Block Theme Help


WPCom

Recommended Posts

Posted

In IPB 3, I was able to use a member data feed and use the variable $r['field_18'] to pull data from a custom profile field to sort members into lists depending on their value. On the new block templates, I am unable to do so. Documentation is almost impossible to find, and was wondering if anyone would know how to do so.

 

Thanks!

Code from IPB 3:

<foreach loop="$records as $r">

	<if test="$r['field_18'] === "1"">
		<a href="{$r['url']}">{$r['title']}</a>
	</if>
</foreach>

Code in IPB 4 (What I think it should be but is not): 

{{foreach $members as $member}}
{$member->link()|raw}{$member['field_28']}
{{endforeach}}

The code is not exactly what the one before was, but im just trying to output the value of the field at this point.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...