Quote:
Originally Posted by JosephFM
I know that to save you and me some time I can just use the RSS feed to pull only shemale or gay content from Chaturbate but, can CyberSEO « #1 professional content curation plugin for WordPress since 2006. pull only certain content from the XML API url?
I just want to pull the male and shemale only info for two niche sites I'm working on. Like I said before, I can use the RSS feeds for that, but the API has more info I want to extract.
Shemale models in the CB API are identified like so:
And male models like so:
|
With CyberSEO you can do it easily. E.g.:
Put the following text into the "
Custom fields" box:
Now you can manipulate it with your posts. E.g.
The "
PHP code <?php .. ?>" box:
Code:
if ($post['custom_fields']['gender'] == 's') {
$post['categories'][] = 'Shemale';
}
if ($post['custom_fields']['gender'] == 'm') {
$post['categories'][] = 'Male';
}
if ($post['custom_fields']['gender'] == 'f') {
$post['categories'][] = 'Female';
}
So every gender will go to its own category (the same method works with tags). Also you can filter them out. E.g.
The "
PHP code <?php .. ?>" box:
Code:
if ($post['custom_fields']['gender'] != 'f') {
$post = false;
}
So only female profiles will be added to your site. Everything else will be ignored.