InsertableContentSource

The development world of a madman

WordPress Featured Image Plugin For Live Writer

For a while now, @ kipkniskern (my LiveSide mate) has been asking whether it was possible to be able to set the featured image of a post for WordPress. This would save everyone the job of publishing the post, then having to log into the site and manually set the featured image.

This was a seemingly simple request, but finding out how to do it was a nightmare. I eventually found that to set a post’s featured image, you needed to set a Custom Field for the post of “_thumbnail_id” and give the image’s attachment id as a reference. Simple, right? Wrong!

With the help of Brandon Turner’s excellent Custom Field plugin, I was able to test that this did in fact work and was what I needed to set from my own plugin. So I set about getting it all set up for the plugin. What I eventually discovered was that WordPress is a real pain in the ass. No, really! When you upload an image, all it returns is the image url, and doesn’t include the attachment id. To make matters worse, that custom field only accepts the image id, not the url. This was raised to WP some months ago, but as yet, nothing has been done about it.

Not to be deterred, I created a WordPress plugin that would do exactly the same as the normal image upload function, but returned the id as well. Unfortunately, in doing so, it means that this feature (featured image), which is accessible to both self hosted and wordpress.com users, can only be set in Live Writer for self hosted users. I hope I’ll be able to rectify this in the future.

So, onto the plugin itself. First of all, you need to install my WP plugin, which can be downloaded from http://bit.ly/ScottMediaObject. Install this through your WP dashboard, there are no settings.

Once that has been installed, download the Live Writer plugin from http://bit.ly/FeaturedImagePlugin and install it.

The only real interface for this plugin is the options window:
FeaturedImageOptions

Now, this plugin uses a new technique for allowing blog specific options (a blog post on how to do this will come soon). You will be presented with all configured WordPress blogs in the drop down, selecting one will give you a list of all the categories for this particular blog. The reason for this is you might only want to set the featured image for certain types of blog post; for example, if you only wanted to do it for posts with the category of ‘Featured.’ If no categories are set, then it will ask you for an image on every post.

The other option you can see is to use the post’s ID as the image name, this is on by default.

When you then go to publish your post, on first run, you’ll be prompted as to whether you would like Live Writer to run the plugin:
FeaturedImageEnablePlugin

If it is your first time running the plugin, or you choose not to save it, you will then be prompted for your blog’s password. Note: You will not be asked for the username, the plugin has already got that from your configured blog in Live Writer. You can choose to save this password (securely) in the plugin’s options. In the main plugin options, if you’ve chosen to save your password, there is an option to unsave it.

Once your password is entered, choose your featured image, and let the plugin do its thing.

I should point out, this plugin uses a modified version of Orbifold’s WordPress.net wrapper. I changed a few things to get the wrapper to talk to my WordPress plugin.

So there we go. Any feedback you have should be directed to me on twitter or in the comments.

WordPress plugin: http://bit.ly/ScottMediaObject
Live Writer plugin: http://bit.ly/FeaturedImagePlugin

SL

The URI to TrackBack this entry is: http://dev.scottisafool.co.uk/2011/05/24/wordpress-featured-image-plugin-for-live-writer/trackback/

1,336 Responses to “WordPress Featured Image Plugin For Live Writer”

  1. real estate in turkey antalya shopping…

    Samedi rigolade! – Mon premier blog…

  2. chipotle catering menu prices…

    Samedi rigolade! – Mon premier blog…

  3. resource…

    Samedi rigolade! – Mon premier blog…

  4. click now…

    Samedi rigolade! – Mon premier blog…

  5. http://www.msdesign.lu...

    Samedi rigolade! – Mon premier blog…

  6. helpful resources…

    Samedi rigolade! – Mon premier blog…

  7. Testosterone Replacement Therapy for Men…

    Samedi rigolade! – Mon premier blog…

  8. These brand ambassadors take your message to the streets andd make your
    experiential marketing summit 2017
    occasions successful.

  9. MKTG looks to lead in life-style advertising across its 5 key strategic service pillars of Retail and shopper, stay and experiential,
    sports activities and entertainment, enterprise and inventive and innovation.

    my page lifestyle marketing quizlet (http://www.rebelmouse.com)

  10. Apa itu Forex…

    Samedi rigolade! – Mon premier blog…

  11. Our Website…

    Samedi rigolade! – Mon premier blog…

  12. car services toronto…

    Samedi rigolade! – Mon premier blog…

  13. isis says:

    This will lead to involvement of other countries and the differences between two countries or nations would be resolved in a peaceful manner.

    Things like these are very important to consider because it will help you plot
    your currency trading decisions should the similar trading climate or factors once again come
    up. com has news and updates regarding the US law and its extent too, among other news on other countries.

  14. source says:

    As you might imagine, Neil Lane jewelry does not come cheap.
    Annie Leibovitz became one of the most famous photos of the Rolling Stone magazine because, five
    hours after Leibovitz photographed Lennon, the singer was shot and killed.
    The Sims 3 vampire hidden bar can be found in the cemetery underground.

  15. Wwwporno.Con…

    Samedi rigolade! – Mon premier blog…

  16. youdeaf.com says:

    videos Pornosxxx gratis…

    Samedi rigolade! – Mon premier blog…

  17. pokemon go hack android apk…

    Samedi rigolade! – Mon premier blog…

  18. Everywhere we go, we interact with promoting initiatives,
    Marketing advertising Agenciess malta; Surfingbird.ru, strategies and PR campaigns; after we read ann advert on thhe
    practice, ater wee resolve to buy a laptop, or when we
    discuss celebrities with our mates.

  19. Vеrʏ great post. I simply stumbled upon yoսr blog аnd wished
    to say that I’ve truly loved browsing your blog posts.
    In any case I’ll be subscribіng to youг rss feed and I hope
    you write oncᥱ moгe very soon!

  20. free uk tv online…

    Samedi rigolade! – Mon premier blog…

  21. 50 inch tv…

    Samedi rigolade! – Mon premier blog…

  22. maclean electrical online catalogue…

    InsertableContentSource » Blog Archive » WordPress Featured Image Plugin For Live Writer…

  23. seven…

    Samedi rigolade! – Mon premier blog…

  24. sbf center price…

    Samedi rigolade! – Mon premier blog…

  25. A big budget movie with Sultry Kareena Kapoor and handsome hunk
    Akshay Kumar, Amrita Arora, Aftab Shivdasani, not to forget the impressive Hollywood star
    cast as Sylvester Stallone, Denise Richards
    and Brandon Routh, this movie is sure to be a complete entertainer.
    Jaya Movies online also encompass Republic Day movies.

    Are you tired of paying high amount of rent to movie library for DVDs or VCDs
    to watch movies.

  26. MarquisFreun says:

    I see your site needs some fresh articles. Writing manually is time consuming, but there is tool for this task.

    Just search in gooogle for: Avurker’s essential tools

  27. houses for rent woodlands waterford qld…

    Samedi rigolade! – Mon premier blog…

  28. Kingsford Waterbay Sold…

    Samedi rigolade! – Mon premier blog…

  29. sbf center price…

    Samedi rigolade! – Mon premier blog…

  30. properties for sale uk…

    Samedi rigolade! – Mon premier blog…

  31. zefirerp.com says:

    new York regional Center eb-5 process…

    Samedi rigolade! – Mon premier blog…

  32. Latest Indian Celebrity News & Bollywood Gossips are drawing
    the attention of millions of people moreover people are very interested in
    Gossips about celebrities. Human being need to be updated
    of what is happening around them, at least, or what is going on around the world.
    Many of their articles are syndicated on Google News and are
    available to the millions of searchers who go to
    Google News each and every day.

  33. http://www.wudikaoba.com...

    Samedi rigolade! – Mon premier blog…

  34. sbf center address…

    Samedi rigolade! – Mon premier blog…

  35. singapore property price index 1960 to 2010…

    Samedi rigolade! – Mon premier blog…

Leave a Reply

[InsertableContentSource is proudly powered by WordPress.]