Adding a new field does not work
-
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
- The topic ‘Adding a new field does not work’ is closed to new replies.