-
AuthorPosts
-
October 10, 2014 at 9:03 pm #334076
Hi guys,
if i add a shortcode to the main field (body text) before any text, excerpt will not be displayed on a (blog grid) page. If i manually add text to the excerpt field, it works, but i’d like to have it work regardless.
Any clues?
Thanks,
Tomaž
October 10, 2014 at 9:10 pm #334078PS: I added
add_filter( ‘the_excerpt’, ‘shortcode_unautop’);
add_filter( ‘the_excerpt’, ‘do_shortcode’);to my child theme, but to no avail.
October 13, 2014 at 12:59 pm #334834Hi!
Please go to Enfold theme options > Blog Layout and choose “Use the advance layout editor to build your own blog layout (simply edit the page you have chosen in Enfold->Theme Options as a blog page)” then create your blog page like any other page
Best regards,
YigitOctober 13, 2014 at 3:23 pm #334963Hi Yigit,
Thank you for the response, but i’m afraid i fail to see how this is an answer to my question. Perhaps if you could provide extra pointers?
My settings are already as per your suggestion. For blog posts where i’m not using shortcodes, the excerpt is displayed normally (auto-generated), whereas for posts where i have shortcodes, it is not.
This, i believe, is a known WordPress issue, and one which i have previously solved by applying the two filters mentioned above. However, it didn’t work with my current setup with the Enfold theme, and i was wondering whether you perhaps had any additional pointers in this regards?
Kind regards,
TomažOctober 16, 2014 at 3:43 am #336508Hey Tomaz!
the_excerpt()
is not used by Enfold when a Grid layout is set, that’s why the filters are not working. Nevertheless, i think those excerpts should work fine regardless of wether the post has shortcodes or not, can you please create us a WordPress administrator account? post it here as a private reply.Regards,
JosueOctober 16, 2014 at 10:42 am #336686This reply has been marked as private.October 17, 2014 at 5:31 am #337149Hi!
Thank you for the screenshot. Please refer to this link: https://kriesi.at/support/topic/shortcodes-in-textausschnittenfixe-hoehe-bei-eintraege-slider/#post-267770
Regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.