Unless the data is uploaded through WP, it has no way of detecting the added data as it happens, so instant pages are probably not possible. It should be possible to schedule a hourly task to identify data that does not have associated pages and create new pages for that data.
It is not instantaneous, but perhaps it is timely enough?
If you have access to the database with the extra data in it it is possible, but it’s a bit of work.
What you’d need to do is set up a CRON function to check for new data in the database. If new data is found, read it and create a new post/page/wahtever in the WordPress system and mark that row of data as processed so it’s not added again in the next CRON round.
That’s a pretty simplified version of how it would work, but it is definately possible. You’ll just need to look at your own data and how you want it set up on the pages to be able to see how you want it done.
@bcworkz – It is enough to create pages as time driven (periodic) event. But should be programatically. How it is possible?
@catacaustic – can u give some code samples to achieve this?
You can use the WordPress CRON as I linked above, and to create the posts you’d use wp_insert_post(). Apart from that it’s hard for me to say to much because I don’t know what your data is, how it’s meant to e formatted or any other details that would be needed to actually do this. Like I said it’s not a small job. I don’t think that it’s a big job either, but it’s more then what a few lines of code in here would be able to portray. But the basic process would be:
- Check database a data row with no post ID assigned to them
- Do whatever processing is required to get the new data row into a format that can be used in your post object/page
- Save the post using wp_insert_post() and keep a note of the post ID
- Record the post ID against the data row that was just processed
- Repeat from step 1 until there’s no more un-assigned data rows