I want to instantiate a PHP variable with some custom field values. Then I want to use this PHP variable is some custom PHP code that’s to be executed on Output. Pseudo-coding, is the below sort of thing possible? Or, if not, does anyone have a suggestion for how to cull this data so it’s available for my custom PHP?
{exp:weblog:entries weblog="course" limit="1"}
<!php $newvar =
{reverse_related_entries weblog="class"}
{class_id}
{/reverse_related_entries}
?>
{/exp:weblog:entries}Then, I’d like to use $newvar in some custom PHP that would follow.