Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-19-2013, 05:55 PM   #1
tonyparra
Confirmed User
 
tonyparra's Avatar
 
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
Wordpress question: How to use custom field outside of wordpress but same domain

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...
__________________

High Performance Vps $10 Linode
Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot
tonyparra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2013, 06:01 PM   #2
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,039
There is nothing stopping you pulling data from the mySQL DB that WP is using.

Its one of those easy if you know how to it problems....
__________________
-

Chaturbate Script - https://gfy.com/fucking-around-and-b...er-issues.html - Now supports White Labels
EddyTheDog is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2013, 08:46 PM   #3
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,287
2 methods.

1. connect to the sql db and grab the info you want.
2. use xmlrpc and get the info that way.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2013, 08:52 PM   #4
Colmike9
(>^_^)b
 
Colmike9's Avatar
 
Industry Role:
Join Date: Dec 2011
Posts: 7,223
Quote:
Originally Posted by fris View Post
2 methods.

1. connect to the sql db and grab the info you want.
2. use xmlrpc and get the info that way.


I'd go with #2, though.
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Colmike9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2013, 08:53 PM   #5
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,287
Quote:
Originally Posted by Colmike7 View Post


I'd go with #2, though.
ya

here is a quick example i put together just now

http://labs.fris.net/xmlrpc/

just gets 1 post but can do anythign with xmlrpc
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-19-2013, 11:11 PM   #6
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,039
Also you can use the REST API - It might be easier to learn and returns results in JSON.

http://developer.wordpress.com/docs/api/
__________________
-

Chaturbate Script - https://gfy.com/fucking-around-and-b...er-issues.html - Now supports White Labels
EddyTheDog is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2013, 12:14 AM   #7
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
Old 02-20-2013, 12:18 AM   #8
tonyparra
Confirmed User
 
tonyparra's Avatar
 
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
Quote:
Originally Posted by fris View Post
ya

here is a quick example i put together just now

http://labs.fris.net/xmlrpc/

just gets 1 post but can do anythign with xmlrpc
havent used this before, have to look it up..or is there a quick tut i can look at?
__________________

High Performance Vps $10 Linode
Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot
tonyparra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2013, 12:24 AM   #9
tonyparra
Confirmed User
 
tonyparra's Avatar
 
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
Quote:
Originally Posted by CyberSEO View Post
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>
did not consider this one...might be the easy way out
__________________

High Performance Vps $10 Linode
Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot
tonyparra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.