Inserting shortcode via add_action
-
Hello everyone, I was trying to figure out how to add a shortcode via function.php I thought this would work, but it does not activates the shortcode there, what am I doing wrong?
function show_post_slider_layout_before() { echo do_shortcode('[contact-form-7 id="12319" title="contactus"]'); }; add_action('avada_after_main_container', 'wpsline_action_footer');
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Inserting shortcode via add_action’ is closed to new replies.