I've written a script to auto-generate articles in K2 format. K2 stores its actual markup and content in the database (MySQL in this case). My script pulls information from a custom real estate component and generates articles in a given format (picture, then text). It then inserts this information into a new row in the jos_k2_items, thus creating a new article.
The problem is, even though the markup looks exactly the same as an article created manually, the JA News FP module doesn't show the image! When browsing the source of the front page (dynamically-generated?) I noticed that an image link is created for the articles in addition to the link to the article itself; however, no such link is created for my auto-generated articles.
Why? What am I doing wrong? The problem must be somewhere in K2 or the FP module since the markup of the generated articles is exactly identical to a manual one.
Please help! I've attached my script and a screenshot of the JA News FP component displaying one of my articles.