For the purpose of this question, I have two WordPress websites. Let's call them "Portfolio" and "News". Portfolio is a "pages" only website while "News" is a "posts" only website. On the Portfolio website, I need to display the top X posts from the News website. Both websites are on the same server, with different MySql databases.
I tried using the JetPack "Display WordPress Posts" widget, but the way XML-RPC works with that widget is not conducive to my environment. So, I want to write my own "widget" to do this work.
Keep in mind that I have never coded a widget for WordPress and so far I have a basic-intermediate level understanding of PHP. That is, more than theory, I could use some examples.
I came across http://codex.wordpress.org/XML-RPC_WordPress_API/Posts#wp.getPosts and looks like it is something I could use. However I found no examples on how I could use this API to pull content from the blog.