1

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?

3
  • 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 Commented Dec 30, 2019 at 15:59
  • @RiddleMeThis I found a solution (without shortcodes) by digging into the code, posted below.
    – lonix
    Commented Dec 30, 2019 at 16:06
  • Tags have nothing to do with a question being ontopic... Commented Dec 30, 2019 at 16:08

1 Answer 1

1
<?php Ninja_Forms()->display(123) ?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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