Results 1 to 2 of 2

Thread: Tweak function 'cp_update_listing' URGENT

  1. #1
    Thread Starter
    neticpro's Avatar
    Join Date
    Feb 2011
    Location
    France
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Tweak function 'cp_update_listing' URGENT

    Hi,

    here is my problem :

    I'm using a function to automatically generate a custom field when an ad is published. Here it is
    PHP Code:
    // Save Fields
    add_action('publish_post''save_details');
    add_action('save_post''save_details');
    add_action('edit_post''save_details');

    function 
    save_details(){
     if ( 
    defined('DOING_AUTOSAVE') && DOING_AUTOSAVE 
        return 
    $post_id;
     global 
    $post;

     
    update_post_meta($post->ID"geocoding"$_POST"cp_street"] . " " .$_POST["cp_zipcode"] . " " $_POST["cp_city"]);

    This function works fine when I'm in the admin of WordPress NOT when a user edit it. The file called tpl-edit-item.php has a function cp_update_listing made to update the different fields of the edit page item.

    How can I do to use this one to get my own function working ? If you know some developpers to do it, tell me !!

  2. #2
    Rookie favorigrup's Avatar
    Join Date
    Jan 2012
    Location
    Turkey
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Urgent Help needed
    By darrynlewis in forum Report JobRoller Bugs
    Replies: 2
    Last Post: October 5th, 2011, 09:02 AM
  2. Another Bug CP 3.0.5.3 (urgent)
    By sumaxx in forum Report ClassiPress Bugs
    Replies: 37
    Last Post: June 11th, 2011, 01:18 AM
  3. Need Urgent Help
    By dazzaboo2000 in forum Help Using ClassiPress
    Replies: 8
    Last Post: May 9th, 2010, 10:22 AM