I want to know how wordpress displaying shortcode inserted in post content, so I can replicate what it does and implement it to my plugin.
Here is an example:
I want to show shortcode inserted between an html codes like this:
<div class="akismet_activate"> <div class="aa_a">A</div> <div onclick="document.akismet_activate.submit();" class="aa_button_container"> [the_shortcode id="4"] <div class="aa_button_border"> <div class="aa_button">Activate your Akismet account</div> </div> </div> <div class="aa_description"><strong>Almost done</strong> - [the_shortcode id="4"] activate your account and say goodbye to comment spam</div> </div>
I've done several ways, but its only execute the shortcodes and ignoring the html goodies.
What can I do to make the executed shortcode displayed between html codes like that example?