Support » Fixing WordPress » Getting an iframe, object or a div from the wordpress post.

  • I want to get a div with an id of something from a wordpress post and display it. I don’t know how I am going to do it so I really need help. If I can’t get the div then please tell me how do people get iframes and objects from the wordpress post? I have made a div tag which looks like <div id="featured_content"> // Some crap here // </div>.
    Remember I want to get the div along with all its content. Any help will be appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    Are you using a custom template?

    I am using starkers naked wordpress theme by Elliot Jay Stocks.

    I remember that on a multi-site setup I was running, when a user with admin status pasted <iframes> into the post, the code would be stripped.

    I had to give him super-admin (network-admin) status, so he was able to paste the <iframe> code (for a custom Vimeo player).

    I just came across this page that gives some official information:

    http://codex.wordpress.org/Roles_and_Capabilities

    So the capability that is needed here is called unfiltered html.

    And indeed, in a multi-site setup this is reserved to the Super Admin. On a single-site installation, the normal Admin has that ability.

    I’m having a severe issue with my WYSIWYG editor too. It’s weird. Whenever I switch between visual and HTML, the whole post screws up. Right now, I can’t get one of my posts back to the correct formats! My site is Ab Circle Pro. Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Getting an iframe, object or a div from the wordpress post.’ is closed to new replies.