I want to make a blog page which is generating content for particular user based on his/her Facebook likes, activity etc. For example I like Shakira and Coca Cola on Facebook. When entering the blog and connecting via Facebook, the blog gets that info and searches for Shakira's YouTube video through YouTube API and shows me the video in a WordPress post. After the blog searches for news connected with Coca Cola and shows news about it also in a post.
There is no problem with FB connect, YouTube search or Google search. My problem is WordPress. As there can be a lot of users and a lot of content can be generated for each user, I can't save every post in MySQL table. I want to generate posts dynamically. I'm not asking for code here, I just want to hear good solutions and ideas how can this be done.
This is an another way to create posts dynamically
Which helps me alot!!.
For more information about
wp_insert_post
clickhereAlternative solution:
As a solution you could use the 404 page to generate this dynamic post.
There's a blog post here that gives a similar solution: http://www.blogseye.com/creating-fake-wordpress-posts-on-the-fly/
The code used to generate the fake posts:
Make this into a plugin or add it to the functions.php file.