I’m relatively new here. I tried to execute a shortcode which is [ssba] in every single post in their main listing page (please check the page http://www.theevidencenetwork.com.php54-1.ord1-1.websitetestlink.com/news-events) but was unable to do so. When I view each post in their own page like when I click on any post listed there and view them the shortcode works just fine. But I want to show them in the main page as well.
How do I do that?
I’m relatively new here too..
The shortcode is probably not showing because it’s
the_excerpt()
, it doesn’t render shortcodes or html.There are a lot of ways to solve this ‘problem’
I think you can try this:
Put this code on your functions.php
This will automatically add the [ssba] shortcode at the end of every
the_content()
andthe_excerpt()
in your theme.With this solution you don’t need to manually eneter this information on every post
if you want you can use conditional tags inside so you add only at the pages you want.
or like AgmLauncher said, you can use
do_shortcode()
in the loop.sorry for bad english.