• WordPress is deleting input tags from my html code. It seems to only happen on some of my wordpress sites. I have created a form, insert the html code on a page, I can view the page only once, then once the page refreshes, all of the input tags have been removed from my code … which results in a pretty messy page.

    I edit the page using an admin role, thus it should have the ability to use input tags in the html … correct?

    <div class=’form’>
    <div class=’form_label’><label>Your First Name <span class=’required’>*</span></label></div>
    <div class=’form_input’><input type=’text’ id=’form_1_0′ name=’form[1_0]’ required=’required’ ></div>
    </div>

    I save the page, view the page once, on the second viewing the input tags are removed and I get this:

    <div class=’form’>
    <div class=’form_label’><label>Your First Name <span class=’required’>*</span></label></div>
    </div>

    The actual form is more elaborate than shown above … the code is for example.

    Any help would be appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • darkspeed1

    (@darkspeed1)

    I am having the same problem on 3.5.1 with all plugins turned off

    anybody out there?

    I have been using widgets on pages to get around the problem. I believe the problem is related to the domain name set in the general settings vs the domain name of the website. I have 2 domain names pointing at the same wordpress site. I believe the problem is related to editing the pages from a domain name that is not the one in the general settings. It must be some sort of a security feature. I have no idea what the issue is, but I am confident it is related to the domain names and security.

    darkspeed1

    (@darkspeed1)

    I just solved it

    I changed myself from admin to site_admin by adding the following code to my public_html/wp-content/themes/xxx/functions.php

    include(ABSPATH . 'wp-admin/includes/ms.php');
    $user = get_userdatabylogin('YOUR_USERNAME');
    grant_super_admin($user->ID);

    logging out then logging in

    then removing the code from functions.php

    it gave me super user so it trusts my code from now on.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress is deleting input tags’ is closed to new replies.