November 12, 2013 at 8:33 am #187146
Thirst things first.. Enfold makes life alot easier.. this is BY FAR the best theme out there.
I do have a question though..
Is there a possibility to use the Enfold shortcodes (example button) in the excerpt of a post/portfolio item? When I copy the shortcode from the normal wysiwyg editor and paste it in the excerpt I only get to see some html markup and it doesn`t read my shortcode.
Please help if possible
ThomasNovember 12, 2013 at 9:21 am #187155November 13, 2013 at 3:11 pm #187776
No, wordpress excerpts do not support shortcodes or html code by default.
PeterDecember 2, 2013 at 11:48 am #195251
Hey I bougth this theme because I asked this exact question in the themeforest forum and the one with the nick “kriesi” replyed that I can just put a shortcode in the excerpt field. So now what?
ThanksDecember 2, 2013 at 8:14 pm #195451
Do you have a link to where Kriesi said that? WordPress by default does not allow for html within excerpts so I’d like to see exactly what Kriesi said as maybe there is a bit of terminology getting lost in the explanation.
Kriesi, the theme author, is the only one who posts on the ThemeForest page so if he said something was possible then it should be doable.
DevinDecember 2, 2013 at 8:25 pm #195462
Thanks for the response. I think I understood it right but have a look.
here is the link
It is the first discussion in this search “edfaber” is my mic
(by the way your system clock is an hour to fast if you are sitting in vienna ;-)December 5, 2013 at 11:35 am #196611
Excerpts do not support shortcodes by default but you can use the do_shortcode() function to execute them even if wordpress does not support them in excerpts. In your case you need to modify /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio.php – open up the file and replace
$output .= !empty($excerpt) ? "<div class='grid-entry-excerpt entry-content' ".avia_markup_helper(array('context'=>'entry_content','echo'=>false)).">".$excerpt."</div>" : '';
$output .= !empty($excerpt) ? "<div class='grid-entry-excerpt entry-content' ".avia_markup_helper(array('context'=>'entry_content','echo'=>false)).">".do_shortcode($excerpt)."</div>" : '';
PeterDecember 5, 2013 at 1:15 pm #196640
The topic ‘Using Enfold shortcodes in the excerpt?’ is closed to new replies.