Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm wondering if someone may be able to point me in the direction of a tutorial that can help me deliver my last X posts in X category as a javascript snippet to a publishing partner.

I want to be able to control the content (html) within the snippet without them having to do anything. We'll be sending them posts and ads. Would this be better accomplished using iframes?

Any advice appreciated. A

share|improve this question
add comment

1 Answer

Have you considered using the RSS feed to import posts?

Another possible solution might be to use the export feature, the output is an xml file though not js. I found a program that will import the WordPress Exported file (which allows you to choose certain posts, all post, or posts between a certain date, or by category).

After you import the WordPress XML file you can generate; an HTML file, T.O.C, or a Word HTML file that consists of the exported file content. I'm not sure what your destination site uses to display content, but it should have a way to import the data.

share|improve this answer
    
HI thanks @Jeremy ! I did consider RSS but if I give them the direct feed i have no way to track anything about the content - how many times it was viewed on their site etc. Which is what I really want to know. They are also using WP but the posts need to update in real time as they will be republishing from 1 - 10 posts /day. THanks again! –  Andrea Jan 11 '12 at 19:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.