View Single Post
Old 06-11-2018, 07:27 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,378
Quote:
Originally Posted by MrT31 View Post
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'];
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote