Hi,
I’m using the Portfolio Raster to display Portfolio data and have it configured, so it shows the title and excerpt of the Portfolio Entry. Unfortunately Shortcodes are not processes.
1)
What can I do to enable Shortcode processing for excerpts displayed there?
2)
The excerpt text editor is quite limited. Is there any way to get the Portfolio Raster to display the preview text of a Portfolio item instead (including Shortcode processing ;))?
Thanks and best regards!
Hey thewilli,
Excerpt doesn’t really support shortcodes however you can try to change how it works on portfolio by following the instructions in: https://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
then copy portfolio.php file in the enfold > config-templatebuilder > avia-shortcodes > portfolio > portfolio.php and paste it in the shortcodes folder of the child theme, edit the file and find this code (line 650):
$output .= !empty($excerpt) ? "<div class='grid-entry-excerpt entry-content' ".avia_markup_helper(array('context'=>'entry_content','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup)).">".$excerpt."</div>" : '';
and replace with:
$output .= !empty($excerpt) ? "<div class='grid-entry-excerpt entry-content' ".avia_markup_helper(array('context'=>'entry_content','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup)).">".do_shortcode($excerpt)."</div>" : '';
Hope it helps :)
Best regards,
Nikko