• Hi,
    I would like the shortcode dinamically to my content in a template file.
    Eg.:
    $( “#addnew” ).click(function( event ) {
    $(‘.somediv’).html( ‘<?php echo do_shortcode(‘[wordpress_file_upload]’); ?>’ );
    });

    It show me 0 instead of the file input.
    How could I solve this?

Viewing 1 replies (of 1 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi,

    1. does .somediv exists?
    2. do you see and HTML code generated inside .somediv?
    3. check quotes symbol. It should be single quotes (‘) or double (“). In your code I see a strange one (‘).

    Regards

    Nickolas

Viewing 1 replies (of 1 total)
  • The topic ‘Shortcode dinamically’ is closed to new replies.