Display Extra Fields in Front End by Group

  • brianroux
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 7 months ago #1099 by brianroux
If you can have a K2 Item with 2 Groups display their extra fields, but each with its own Group Heading eg.

Group 1 Heading
- Extrafields

Group 2 Heading
- Extrafields

Then you can display 1 group in Category item view, but display extra assign groups in Read more Item View.

In php code:
<?php if ($extraField->group == '1'): ?>
"group name"
<?php foreach ($this->item->extra_fields as $key=>$extraField): ?>

Can't be that difficult, I am just not that experienced in php to hack the k2 template files.
The following user(s) said Thank You: customizedvapor

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum