Skip Navigation

[Resolved] Capture custom post type data from a simple html/php from input of another site

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to create post by collecting data for post from one site (www.abc.com) to another (www.xyz.com).

Solution:
To create post(s) using WordPress API you need to work with native WP API. To achieve it will require custom programming.

You will find more detail solution on the following reply:
https://toolset.com/forums/topic/capture-custom-post-type-data-from-a-simple-htmlphp-from-input-of-another-site/#post-385415

Relevant Documentation:
=> https://developer.wordpress.com/docs/api/
=> https://developer.wordpress.com/docs/api/1.1/post/sites/$site/posts/new/#apidoc-example
=> https://toolset.com/consultant/

This support ticket is created 8 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by julianW-2 8 years ago.

Assisted by: Minesh.

Author
Posts
#385165

Let me describe you a situation, I have a wordpress site with wp types installed. I have 2 custom types. Now I want to store data in those custom types from an external html/php (another site) from input via rest api. How can I do it ??

#385415

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Types use standard WordPress API to store the information. For example, types custom post fields stored into postmeta table. Basic post information stored in post table (post title, body, etc..etc..)

For example:
If you have created the custom field called "url" using types Types, the actual WordPress field in the database would be called "wpcf-url". Types prefix "wpcf-" prefix to each field.

So basically here you need to use WordPress REST API that will help you to achieve your goal.
=> hidden link

For example - to create a new post using API:
=> hidden link

This falls in custom development. if you need custom programming for your site, please feel free to contact our certified partners.
https://toolset.com/consultant/

#385651

Okay so if I want to capture any data from hidden link(non wp site) to my wp site custom post I only need to know the api of hidden link

#389224

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

As I explain you in my previous reply, basically here you need to use WordPress REST API that will help you to achieve your goal.
=> hidden link

For example - to create a new post using API - using WordPress:
=> hidden link

Now, as hidden link wp site) - is non WP site, you need to create API that collect data from your example.com site (non WP) and submit to your WP site.

This falls in custom development I suggest you should contact our certified partners.
https://toolset.com/consultant/

#389660

thnx

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.