Basically, I accidentally deleted the example HTML shortcode template and I don’t know where to start.
I don’t know about moosend but if you need the basic HTML example here it is :
add_shortcode( 'shortcode_name', function () {
$out = '<p>write your HTML shortcode content here</p>';
return $out;
} );
Hi,
I managed to make it work.
add_shortcode( ‘moosend_form’, function () {
$out = ‘<div data-mooform-id=”the form code here…” ></div>’;
return $out;
} );
Thanks a lot for your awesome plugin!
Best regards,
Barnabas
i need open a shortcode, inside this shortcode, how do i can do it?
add_shortcode( ‘shortcode_name’, function () {
$.ajax({ url: ‘formulario.php’,
data: {action: ‘test’},
type: ‘post’,
success: function(result){
$(“#box_button”).html(result);
}
return ;
} );
in the formulario .php i need open do_shortcode(‘[ninja_forms id=1 ]’);
but the shortcode do not open…
how do i can execute a shortcode ?
Hi @felipexx85,
Remember to include the opening <?php tag in the formulario.php file:
<?php
do_shortcode( '[ninja_forms id=1]' );