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
1 Answer
Reset to default 1<?php Ninja_Forms()->display(123) ?>
本文标签: phpRender ninja form inside markup
版权声明:本文标题:php - Render ninja form inside markup 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744871228a2629640.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论