Results 1 to 9 of 9
-
19th Dec 2011, 09:48 AM #1OPMember
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
-
19th Dec 2011, 12:45 PM #2MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comi 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
-
19th Dec 2011, 01:40 PM #3OPMember
Thanks, I will wait it
Had struggle with this in 3 days with no luck
-
19th Dec 2011, 01:57 PM #4MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comreplace 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);
}
}
}
-
19th Dec 2011, 03:05 PM #5OPMember
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)
);
is it mean setting customs field only can be done when editing post not new post?
-
20th Dec 2011, 10:30 AM #6Memberby 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?
-
21st Dec 2011, 04:56 AM #7OPMember
I see. But still can't figure what the correct field for All-In-One SEO Pack.
-
23rd Dec 2011, 04:44 AM #8OPMember
Just found in here http://wpplugins.com/forums/topic/al...api-issue-help
So, I think I only can wait from them
-
23rd Dec 2011, 09:23 AM #9Member
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?
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Bug in Posting
By mastercho in forum WordpressReplies: 1Last Post: 23rd Dec 2011, 09:36 PM -
Posting Thanks
By EnCiPh3r in forum Feedback and SuggestionsReplies: 1Last Post: 12th Sep 2011, 11:51 AM -
posting for SHIT?????Make money even by posting now.........
By berrycorp in forum Webmasters, Money MakingReplies: 24Last Post: 7th Mar 2011, 12:15 AM -
Help posting
By barcodenation in forum Community CooperativeReplies: 1Last Post: 20th Mar 2010, 06:10 AM
themaCreator - create posts from...
Version 3.23 released. Open older version (or...