Solved

Automate Wordpress Entry from Database

Posted on 2009-04-02
1
452 Views
Last Modified: 2012-05-06
I'm looking for a way to automate a blog entry from an external database.

Whenever a new entry is added to the database, I'd like to create a blog entry.

Does anyone know of a plug-in or PHP script that will do this?  Something where I point to specific tables and columns.  When a new row is added, the data is extracted from the fields and put into the blog.

I'm using MySQL for the Database and PHP.

Thank you.
0
Comment
Question by:netvirtue
1 Comment
 
LVL 3

Accepted Solution

by:
Denisvt earned 500 total points
ID: 24110506
Using a custom script would be fairly easy for that depending on your PHP level.
You'd run a PHP script as a cronjob that would connect to the remote DB, check which records are new, create posts accordingly, and save a log in order to not create double posts.

WP also has XML (RPC) plugins that you could use the other way round: after whatever you have that adds a record to your remote DB, make it connect to your WP's RPC and create the new blog there.

Another thing that comes to mind is to use WP's post-by-email feature: I guess it'd be pretty easy to send an email on your remote site whenever a new record is added, and that email would be crafted to create a new post by emailing your Wordpress.

Hope that helps !
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question