admin管理员组

文章数量:1404938

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?

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?

Share Improve this question asked Dec 30, 2019 at 15:47 lonixlonix 3011 silver badge10 bronze badges 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/docs/form-building, you probably want Method 2: Form Shortcodes, you can echo the shortcode in PHP – RiddleMeThis 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... – RiddleMeThis Commented Dec 30, 2019 at 16:08
Add a comment  | 

1 Answer 1

Reset to default 1
<?php Ninja_Forms()->display(123) ?>

本文标签: phpRender ninja form inside markup