1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Wordpress question - how to add a field into wp-admin/post-new.php

Discussion in 'Content Management' started by puya4ever, Jun 16, 2010.

  1. #1
    Hi to everyone . I want to add a new field in wp-admin/post-new.php and when I press publish button a query to be submitted . Can you help me with some syntax or ideas to do that ?

    I need two things to know and after I'm able to finish my work .
    1. How can I add a field into wp-admin/post-new.php (bellow the content writer field )
    2. How can I write a function like this: <?php if(is_publish(){ $sql = mysql_query( my query ) } ?> to determine when the button publish is pressed .

    P.S: I don't want to use custom_fields because I want to insert things in another table than wp_terms .

    Thanks,
    puya4ever.
     
    puya4ever, Jun 16, 2010 IP
  2. chandan123

    chandan123 Prominent Member

    Messages:
    11,586
    Likes Received:
    578
    Best Answers:
    0
    Trophy Points:
    360
    #2
    you can use current time stamp of sql to implement this feature imo
     
    chandan123, Jun 16, 2010 IP
  3. puya4ever

    puya4ever Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I don't understand . Which are the current time stamp of sql ?
     
    puya4ever, Jun 16, 2010 IP