Forums

Custom Field in Posts (1 post)

  1. ringo_
    Member
    Posted 4 years ago #

    Hi,

    Read the forums to try and get answer to my questions and by the sounds of it i'm making trying to reinvent the wheel somewhat but hey!

    Under the create/edit post page (edit_for_advanced.php) I have added the following just under the title

    <fieldset id="titlediv">
    <legend><?php _e('Post url - beta') ?></legend>
    <div><input type="text" name="post_url" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_url); ?>" id="posturl" /></div>
    </fieldset>

    and everywhere i can see i have added references for post_url in includes/post.php, functions_post.php. I have also found the place where you can add some default text ie 'http://'.

    However when I save the post the database field doesn't get updated (there is a database field called post_url), but if i enter some text direct into the database when I edit the post it will show it.

    anyone help please??

    p.s. I am aware of the custom fields at the bottom of the edit post page but i require a bespoke field of my own sorry.

Topic Closed

This topic has been closed to new replies.

About this Topic