0

I want to render a ninja form via markup (in a php file):

<div>
  <h1>hello</h1>
  <ninja-form>           <---- ?
</div>

What do i put in there to render a particular ninja form?

  • 1
    This is off topic as its a 3rd party plugin. Also, a little effort on your part and you can easily google this. Look toward the bottom of this page, ninjaforms.com/docs/form-building, you probably want Method 2: Form Shortcodes, you can echo the shortcode in PHP – RiddleMeThis Dec 30 '19 at 15:59
  • @RiddleMeThis I found a solution (without shortcodes) by digging into the code, posted below. – lonix Dec 30 '19 at 16:06
  • Tags have nothing to do with a question being ontopic... – RiddleMeThis Dec 30 '19 at 16:08
1
<?php Ninja_Forms()->display(123) ?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.