2015-02-17, 01:50:04
(2015-02-17, 01:38:46)Carlos Wrote: Oh sorry, I read too quickly (well I almost didn't read) and thought it was another issue.
Doesn't it work if you simply put your code in a component?
No problem, Carlos. From my experience the template code looks like this:
PHP Code:
<?php get_special_field('link','',false); ?>
And component code looks like this:
PHP Code:
<?php echo $item->link; ?>
I've tried using the template code below in a component and it doesn't work so I just need to know how to convert this to work inside a component - thanks!
PHP Code:
<?php if (return_special_field('specialimg') != "") { ?><div class="entry-thumb">
<a href="<?php get_special_field('link','',false); ?>"><?php get_special_field_image('specialimg', return_special_field('title','',false), '492', '492'); ?></a>
</div><?php } ?>