Activity Stream
48,167 MEMBERS
61052 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 9 of 9
  1.     
    #1
    Member

    Wink PHP XML-RPC Posting (Need Help)

    Hi,

    I'm using XML-RPC to make post at wordpress, the problem is I can't find the right field to insert data for "All-In-One SEO Pack".

    I tried using fields '_aioseop_title', '_aioseop_description', '_aioseop_keywords' and 'aiosp_title', 'aiosp_description', 'aiosp_keywords' but still didn't working.

    Anyone in here know the right field for "All-In-One SEO Pack"?
    dewaforex Reviewed by dewaforex on . PHP XML-RPC Posting (Need Help) Hi, I'm using XML-RPC to make post at wordpress, the problem is I can't find the right field to insert data for "All-In-One SEO Pack". I tried using fields '_aioseop_title', '_aioseop_description', '_aioseop_keywords' and 'aiosp_title', 'aiosp_description', 'aiosp_keywords' but still didn't working. Anyone in here know the right field for "All-In-One SEO Pack"? <3 Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    i had some issue with this too, i remember i had to edit the file from wp for this to work.
    I will look and post here

  4.     
    #3
    Member
    Thanks, I will wait it
    Had struggle with this in 3 days with no luck

  5.     
    #4
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    replace the set_custom_fields funtion from wp-includes/class-wp-xmlrpc-server.php with:
    PHP Code: 
        function set_custom_fields($post_id$fields) {
            
    $post_id = (int) $post_id;

            foreach ( (array) 
    $fields as $meta ) {
                if ( isset(
    $meta['id']) ) {
                    
    $meta['id'] = (int) $meta['id'];

                    if ( isset(
    $meta['key']) ) {
                        
    update_meta($meta['id'], $meta['key'], $meta['value']);
                    }
                    else {
                        
    delete_meta($meta['id']);
                    }
                }
                else {
                    
    $_POST['metakeyinput'] = $meta['key'];
                    
    $_POST['metavalue'] = $meta['value'];
                    
    add_meta($post_id);
                }
            }
        } 
    i didn't tested with latest wp version. This is what i used on one of my blogs and i remember was working

  6.     
    #5
    Member
    Can you tell me the field do you use?
    I tried both of this but still not working after edit the class-wp-xmlrpc-server.php
    The "All-In-One SEO Pack" is still empty.

    PHP Code: 
    $customfields=array(
            
    'key' => 'aiosp_title''value' => $title ,
            
    'key' => 'aiosp_description''value' => $title ,
            
    'key' => 'aiosp_keywords''value' => $aio_keywords
    ); 
    PHP Code: 
    $customfields=array(
            
    'key' => '_aioseop_title''value' => $title ,
            
    'key' => '_aioseop_description''value' => $title ,
            
    'key' => '_aioseop_keywords''value' => $aio_keywords
    ); 
    PHP Code: 
        $content = array(
            
    'title'=>$title,
            
    'description'=>$body,
            
    'mt_allow_comments'=>1,  // 1 to allow comments
            
    'mt_allow_pings'=>0,  // 1 to allow trackbacks
            
    'post_type'=>'post',
            
    'mt_keywords'=>$keywords,
            
    'categories'=>array($category),
            
    'custom_fields' =>  array($customfields)


        ); 
    by the way, if I saw the function for setting customs field, it was using postid.
    is it mean setting customs field only can be done when editing post not new post?

  7.     
    #6
    Member
    by the way, if I saw the function for setting customs field, it was using postid.
    is it mean setting customs field only can be done when editing post not new post?
    I'm sure you can set custom fields when creating new post with XML-RPC (not only when editing).

  8.     
    #7
    Member
    I see. But still can't figure what the correct field for All-In-One SEO Pack.

  9.     
    #8
    Member
    Just found in here http://wpplugins.com/forums/topic/al...api-issue-help
    So, I think I only can wait from them

  10.     
    #9
    Member
    So it's because of the starting underscore. Good to know that, thanks.

    Maybe you can just change every occurrence of these vars in the plugin itself?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Bug in Posting
    By mastercho in forum Wordpress
    Replies: 1
    Last Post: 23rd Dec 2011, 09:36 PM
  2. Posting Thanks
    By EnCiPh3r in forum Feedback and Suggestions
    Replies: 1
    Last Post: 12th Sep 2011, 11:51 AM
  3. posting for SHIT?????Make money even by posting now.........
    By berrycorp in forum Webmasters, Money Making
    Replies: 24
    Last Post: 7th Mar 2011, 12:15 AM
  4. Help posting
    By barcodenation in forum Community Cooperative
    Replies: 1
    Last Post: 20th Mar 2010, 06:10 AM

Tags for this Thread

BE SOCIAL