[wp-hackers] iframe question

Mike Walsh mpwalsh8 at gmail.com
Thu Jan 29 16:11:19 GMT 2009


Couldn't you just define a custom short code to do this?  You could
defiine your shortcode to wrap whatever content the user provides in
an IFRAME tag.

Mike

On Thu, Jan 29, 2009 at 11:08 AM, Jennifer Hodgdon
<yahgrp at poplarware.com> wrote:
> Another option is to have your users insert something else, like text [[put
> map here]] into their editor. Your plugin can process that when a post is
> displayed (use filter 'the_content'), substituting the desired iframe. You
> can even get tricky and do something like [[map_here(200,300)]] if they need
> to specify the size of the iframe or pass in other arguments.
>
> My Routes plugin (available from my web site) does something similar if you
> need an example.
>
>    --Jennifer
>
> Scot Hacker wrote (considerably snipped/edited):
>>
>> I've got a lot of users on a lot of blogs going through a [cannot insert
>> an iframe] problem when using the visual editor.
>
> --
> Jennifer Hodgdon * Poplar ProductivityWare
> www.poplarware.com
>
> Drupal/WordPress Sites, Themes, Modules/Plugins
> Custom Web Programming, Web Databases
> PHP, Perl, MySQL, JavaScript, XML, AJAX
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list