View Single Post
Old 02-20-2013, 12:14 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,381

Quote:
Originally Posted by tonyparra View Post
I have a domain that has wordpress running on the site but i use another script also, that is completely not wordpress and i would like to call wordpress custom fields in this script, anyone know how to do this?

For example wordpress controls sitea.com and the other script can make a page like sitea.com/page but its not a wordpress page if you understand or if you can help...
Here is a third solution. As far as I know, you are a CyberSEO customer. In such a case you can get the custom field values for any post you want via simple RSS feed using the following URL variable:

custom_tags=custom_field_name1[,custom_field_name1,...]

For example, let's consider that you have a blog at http://www.yourblog.com/ and want to get values of the "thumb" and "views" custom fields. You can do it like this:

http://www.yourblog.com/feed/?custom_tags=thumb,views

The requested values will be included into every feed item as simple XML tags, e.g.:

<item>
...
<thumb><![CDATA[http://i2.cdn.turner.com/cnn/dam/assets/130217175755-37-danica-video-tease.jpg]]></thumb>
<views><![CDATA[14]]></views>
...
</item>
__________________
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