在wordpress中加载iframe中的自定义页面

I am a noob with wordpress and I need a little help, as I think what I'm trying to do shouldn't be too difficult.

I added in one of the pages the necessary functions that render a form with an input text field and a submit button.

When then submit button is pressed I invoke a modal popup which contains another page which is just an html page but contains a form that posts to a php page.

Right now the content of the iframe is externally hosted and everything works fine. However, I haven't been successful in having the content of the iframe migrated locally within the wordpress directories.

I tried copying the html page into the plugins wordpress directory but the resources (images, javascript, css) will not load. I fear just dumping an html file won't be enough and that it needs to be done differently.

Any clues as to how to get this content to render? Does it have to be a new widget, or is this just a new page with a custom template or is there a quick and easy way to get wordpress to render that directory like a normal php directory?

Thank you

查看全部
dongpu7881
dongpu7881
2014/02/06 19:20
  • wordpress
  • php
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复