• Hi all
    I am a WP newbie.

    I am trying to add a new field, called flv_url, which is a url for a FLV file, when writing a “Post”

    Now, I add the field right below the Title. I do it like this: I add a new piece of HTML in wp-admin/edit-form-advance.php

    <div id=”flvdiv”>
    <h3>FLV url </h3>
    <div id=”flvwrap” class=”inside”>
    <input type=”text” name=”flv_url” size=”30″ tabindex=”1″ value=”flv url here” id=”flv_url” />
    </div>
    </div>

    OK, this shows up when writing a new post.

    And inside function wp-admin/includes/post.php, I print_r($_POST) right at the beginning. Of course this is for debugging only

    As you know, when focusing away from the Title field, this post.php is somehow called. However, the printed $_POST doesn’t show flv_url field

    Why is that?? I don’t know how WP works inside out. And also what’s more strange is, on the HTML page, when I TAB away from Title field, it jumps right away to Content block, skipping my newly added input text “flv_url”

    This is very strange to me. What do I have to do to ahve this???

    Thanks alot

Viewing 2 replies - 1 through 2 (of 2 total)
  • Maybe try a plugin liked More Fields?

    Normally it’s not a good idea to edit the core files I believe?

    If you’re trying to customize your setup, as mosey said, not a good idea… especially if

    “I don’t know how WP works inside out.”

    You take something apart, put it back together, and have leftover parts, likely it will not work right anymore.

    You should try to follow the plugin development guidelines, so you’ll be able to upgrade your core later. Or use an existing plugin. Or at least customize an existing plugin, rather than the core.

    BTW, remove “tabindex=1” and let the browser work out the tab order.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding a new field does not work’ is closed to new replies.