Views PHP: Getting field values and generating link I want to generate the RSS feed of my calendar as:

PHOTO (uploaded photo)

BODY

http:://www.example.com/content/the-title (Link of feed to the content page)


For this I use a "Global: PHP" field in the calendar view I created, entering code in "Output code".

I didn't succeed in printing the node body using:

&lt;?php echo $row-&gt;body; ?&gt;


With this, I get the ID.

The following gives no result:

&lt;?php
$node = node_load($row-&gt;nid);
print_r($node);
?&gt;


Using:

&lt;?php print_r($row); ?&gt;


I got:

stdClass Object
(
[title] =&gt; The title
[body] =&gt; 1311
[rendered_entity] =&gt; 1311
[php] =&gt; 
)


How to I get the real content of the body, image link (field_photo) and the content link?

Thanks,
Try using these code

$body = $data-&gt;_field_data['nid']['entity']-&gt;field_image['und'][0]['body'];


OR

$node = node_load($data-&gt;$nid);
$body = $node-&gt;body[0]['value'];


This may be because of the issue here