• Trying to embed iframe of Google Maps. Works as super admin but not as editor? How do I allow it for an editor or any other level of users?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter First Last

    (@kliphten)

    I see all these plugins to embed iframes but I know it is possible without since it can be done as a super admin. I’m assuming there is something that gives different levels of users different capabilities. I remember using a function awhile back to allow certain html tags within the editor.

    Does anybody know the function to allow users to use certain html tags?

    Go to Settings > Media.

    Under Embeds select “When possible, embed the media content from a URL directly onto the page. For example: links to Flickr and YouTube.”

    Save your settings.

    Now just insert the URL (eg, http://www.youtube.com/watch?v=ymzQRIvx8Kg) into the visual editor for a post or page.

    I should add that this feature became available in WordPress 2.9, so you should make sure you’re up to date.

    Thread Starter First Last

    (@kliphten)

    Thanks for the reply!

    I’m on the newest version of WordPress and I have made sure that option is selected but still no luck embedding as an editor. As an admin, though, I can embed, no problem. So something tells me that WordPress built in something to not allow users, other than admins, to embed iframes?

    I’m trying to embed Google Maps and it worked fine as an admin. Then when I signed in as an editor and edited the posts, the iframe was removed (saved in “Visual” and “HTML” modes both deleted iframes).

    Oh yes sorry, you did say Google Maps, not YouTube. Doh!

    This thread identified a plugin, WordTwit, as a culprit.
    http://wordpress.org/support/topic/google-maps-embedding-is-not-working-for-me

    Thread Starter First Last

    (@kliphten)

    Hm…don’t have that plugin.

    See the thing is it works for admin but not editors so I know that WordPress put in something to not allow editors or any user below admin insert iframes. I just can’t seem to find where they do this.

    Thread Starter First Last

    (@kliphten)

    Ah, so I found this:

    http://codex.wordpress.org/Roles_and_Capabilities#Editor

    If you look under “unfiltered_html” it says “(not with Multisite. See Unfiltered MU)” which my site is a network/multisite. Looks like you actually need to a plugin to allow editors to post unfiltered html.

    Question is, if it is possible for a super admin to post unfiltered html, how come there isn’t an easy way to put something in functions.php which allows other users to post unfiltered HTML?

    EDIT: Bingo! Installing the plugin worked. Why a plugin for this?

    Nice one Kliphten. And good question.

    Kliphten, which plug-in did you install to fix this issue? I’m having the same problem.

    Thread Starter First Last

    (@kliphten)

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How To Embed Google Maps (iFrame)’ is closed to new replies.