2013-12-04, 00:22:24
Running just the Custom Fields plugin on GetSimple 3.2.3, I have defined 2 custom fields as such:
The page in question has values for these fields:
The data gets written to the xml file in question:
In the template I've set it to output the fields as such (as a test):
However on output I get no data returned. The paragraph tags aren't shown (because the if statement returns nothing) and I get an empty image holder.
What am I doing wrong here?
The page in question has values for these fields:
The data gets written to the xml file in question:
Code:
<achtergrond><![CDATA[http://localhost/simonsays/data/uploads/space-1.jpg]]></achtergrond>
<extra_text><![CDATA[testing testing testing]]></extra_text>
In the template I've set it to output the fields as such (as a test):
Code:
<?php if (return_custom_field('extra_text')) { ?>
<p><?php get_custom_field('extra_text'); ?></p>
<?php } ?>
<img src="<?php get_custom_field('achtergrond'); ?>" alt="just a placeholder for now" />
However on output I get no data returned. The paragraph tags aren't shown (because the if statement returns nothing) and I get an empty image holder.
What am I doing wrong here?