UPDATES EasySocial 4.0.15 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Templating Custom Fields

David Montoya · ·
4:22 PM Saturday, 26 March 2016
None
I'd like to override the default output for the Latest layout. I've gotten as far as to creating my template override, but how would I go about calling individual custom fields? The default code is using an array to echo out custom fields, and I don't know how to query specific tables other than referencing its ID.

	<?php if ($post->fields && $this->params->get('post_fields', true)) { ?>
<?php echo $this->output('site/blogs/entry/fields', array('fields' => $post->fields, 'post'=>$post)); ?>
<?php } ?>


The end-goal is to stylize and combine information from my custom fields. For example, one field has a URL description, while another has the URL. Instead of meticulously inserting proper markup in each post I can just have it taken care of automatically with custom fields.

Thanks guys! No worries for delay; I know it's the weekend. :)
The replies under this section are restricted to logged in users or users with an active subscription with us