Hi everyone,
I'm looking for a very straightforward description/tutorial on how to call individual extra fields into a K2 template. I've been working on this issue for a while now, and haven't had any success.
We're attempting to put together a site that will allow the client to simply add their content to a series of extra fields, which will be preformatted by us with a number of different templates. One of them for example, is a 'Celebrity of the Month' item. We want to create a series of fields (Name, Age, Nationality, Eye Colour, etc), and then position the values within the main section of the article.
This is the code we were instructed to use to call our extra fields into our template.
echo $this->item->extra_fields[0]->value;
The instructions we were given simply said to adjust the field number to correspond with the required fields position in the back end editor. This works for our first extra field [0], but we can't get any of our other fields to display at all.
If anyone has an idiot proof method for achieving what we're after, I'd be super keen on hearing about it. Thanks, in advance.