Transfer post from one blog to another?

Moaz Ateeq

how to send a post from one blog to another? Mean that when we post on one blog it automatically goes to another blog? I have tried save_post action but did not understand

Steven Jones

Ok - so assume Site A has all of the posts on it and Site B needs those posts on it too (duplicating content isn't a great idea).

You should run a cron job on Site B that runs a function and checks the RSS feed from Site A and imports the content.

You can use fetch_feed() - http://codex.wordpress.org/Function_Reference/fetch_feed in order to parse the XML and then you can use wp_insert_post() http://codex.wordpress.org/Function_Reference/wp_insert_post to add them to Site B.

You can then run this cron job every 15 minutes so Site B takes a copy of the posts from Site A.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Transfer from one table to another

transfer php variables from one server to another

Transfer data from one table to another on insert

Transfer image from one ImageButton to another

Android : transfer a view from a parent to another one

How to transfer a structure from one Plone to another

Transfer data from one database to another with Datamapper

Transfer RAM from one laptop to another

Transfer a repo from one bitbucket account to another

Query to transfer data from one database to another

Transfer the overflowing content from one div to another

Transfer a id from one php file to another

Transfer Files from one cloud storage to another

How to transfer values from one dataframe to another?

VBA Transfer of data from one sheet to another

Transfer multiple columns from one workbook to another

Transfer text from one file to another

How to transfer files from one server to another?

Transfer files from one table to another in impala

PHP variable transfer from one page to another

Transfer NuGet Package from one computer to another

Transfer data from one activity to another

want to transfer the image from one activity to another

Transfer Data From One Component to Another

Transfer files continously from one machine to another

Transfer data from one page to another

Transfer a row of data from one object to another

Django Querying: How do i query an account page through a blog post that the account owner has created? aka link from one to another

Python script to transfer data from one MySQL server to another one