Insert Related Posts from WordPress Plugin for Windows Live Writer

image thumb Insert Related Posts from WordPress Plugin for Windows Live Writer Related Posts for WordPress is a Live Writer plugin that I wrote to allow me to have control over inserting related posts from my WordPress blog directly from within Windows Live Writer.

Although there are plugins available directly for WordPress that allows for this to happen within the WordPress Dashboard, I hate the online editor and use Windows Live Writer exclusively. As such, I wanted to created Related Posts links within the posts without having to apply lots of intelligence around tags, categories etc.

It is quite easy to use and will add directly into the post wherever the cursor is.

Once configured, it can retrieve all the posts from your hosted WordPress blog and allow you to select one or more posts and inserts into the post.

It has the following features:

  • Ability to store your blog details and settings
  • Encloses the related links in DIV—>UL—>LI html links
  • Allows for CSS class labeling of the DIV, UL and LI Links, so that you can control the look and feel of the links
  • Gives an un-styled preview of the links to show you at a glance which links have been chosen and will be inserted into the post.
  • Allows to insertion of “target=_blank” in the a links to allow the links to be opened in a new window if required.

To see installation and usage details, see below


Installation Details

 

This release is still in beta stage and hence is not available via the Live Plugins center. As such, the installation files are not in MSI format.

Additionally, this is created using .net 3.5 and the Live center only allows .net 2.0 compiled binaries at the moment.

In order to install, you need to download the following zip file:

Plugin Dll’s – two DLL’s are contained within this archive, one is the plugin code itself and the other is a helper library to allow Live Writer to communicate with WordPress via MetaWeblog API.

Unzip these DLL’s directly into your Live Writer plugin folder (usually found in C:\Program Files\Windows Live Writer\Plugins)

Note: there isn’t an icon available for the plugin yet, so it may throw an error when you start Live Writer.

Restart Live Writer to enable the plugin. You will see the new plugin under the list of your installed Plugins.

When you first click the plugin link, you need to set up the configuration. Click the Settings… button

image thumb1 Insert Related Posts from WordPress Plugin for Windows Live Writer

Enter your Blog details here. This will be used to connect to your WordPress blog to retrieve a list of the posted articles.

The HTML formatting options allows you to place class tags on the containing DIV, UL and LI tags. Leaving them blank will allow them to inherit the default settings set up in the blogs stylesheet.

How to Use Related Posts Plugin for Windows Live Writer

 

Step 1: Assuming the Settings is completed, hit Retrieve Posts to get a list of all the posts in the blog. This can take some time if there number of posts in the blog is quite high:

image thumb2 Insert Related Posts from WordPress Plugin for Windows Live Writer

Step 2: Simply scroll through the list and tick whichever posts that needs to be included as a related post, and click Choose Posts…

image thumb3 Insert Related Posts from WordPress Plugin for Windows Live Writer

A preview of the relevant links will be shown. The user can make changes to the selected items and re-click Choose Posts… to fine tune the selection.

Step 3: Click on “Insert into Post” to close the window and copy the HTML to wherever the cursor is in Windows Live Writer.

Here is the html that made the following related posts content:

image4 Insert Related Posts from WordPress Plugin for Windows Live Writer

Notes

 

This doesn’t put a heading on the content. It just puts in an unordered list of the links.

My thanks to Scott (http://scottisafool.spaces.live.com/) for inspiration and making his code available to all to read, digest and create their own plugins.

Disclaimer

 

This plugin is a very simple plugin and doesn’t do naughty things like steal passwords etc. It comes as is and is not covered by any warranty. Feel free to use is and recommend any improvements or report any bugs you may find. This was written over a period of a few days only, so the code can do with a bit of a tidy up.

I will eventually upload this to the Live plugins center but until then, I’m looking forward to hearing any feedback (good or bad!)

Related Links


About the Author
Author

dee Dee can sometimes be lazy in updating his blog.. feel free to give him a kick about anything you want to see on here! :)

Comments (8)
Leave a reply

Name (required)

Website