I am creating a WordPress plugin that if possible, I would like to link to a series of pages to an outside website (an affiliate login), instead of re-building a replica of the same pages inside of the plugin.
My thought was to do this inside of an <iframe>
, but since there are several pages, I do not know if this is possible, or if it’s even a good idea for other reasons.
I’m thinking it might be better to re-build the pages inside of the plugin. It sounds like there could be a ton of problems trying to do it with an <iframe>
.
a single iframe can only point to a single source – so make that source have several iframes instead – make a new html file in your plugins folder
like
yourdomain.com/path_to_your_plugin/new_iframe_holding_file.html
in that file put as many iframes as you want show up in your plugin and in your plugin code point the src property of your iframe to that file