Quote:
Originally Posted by MrT31
Hello ,
Thank you for your answer .
No problem . for the moment Can I grab in xml the <performer></performer> field
to put as a tag or category in wordpress ? (not as a custom field , just a wordpress's tag or category)
maybe is a dumb question but I have read the content syndicator doc and i didn't understanf how to do it .
|
You can do it via PHP code.
For categories:
Code:
$post['categories'][] = $xml_tags['performer'];
For tags:
Code:
$post['tags_input'][] = $xml_tags['performer'];
Also you can do it like this:
For categories:
Code:
$post['categories'][] = $post['custom_fields']['actresses'];
For tags:
Code:
$post['tags_input'][] = $post['custom_fields']['actresses'];