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,297 Responses to “WordPress Featured Image Plugin For Live Writer”

  1. beat drug test says:

    It’s just so exciting to discover decent information like this considering the irrelevant material that’s out there. After all, you can definitely tell that much time and patience with into this. Do you use content writers or do you write your own material?

  2. https://disqus.com/by/eduinolowenstein/…

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

  3. drug test detox says:

    Great information in comparison to most of the other subject material I’ve discovered. Carry on the good work.

  4. Tuyet says:

    Many of these companies have quite simple templates to use or you shoould buy
    a software that allows yoou tto simply create your web site
    so you possdibly ccan begin creating wealth with google adsense
    site requirements (Tuyet).

  5. zgmjjlw.org says:

    harga travel umroh ramadhan paling murah…

    Samedi rigolade! – Mon premier blog…

  6. bbs.zhimantian.com…

    Samedi rigolade! – Mon premier blog…

  7. buyfollowers2016.wordpress.com…

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

  8. The intelligent man is one who has successfully fulfilled many accomplishments, and is yet willing to learn more.

  9. Tactical Gear…

    Samedi rigolade! – Mon premier blog…

  10. scam says:

    I believe what you said made a ton of sense.
    But, think about this, suppose you composed a catchier post title?
    I am not saying your information is not solid,
    but what if you added something that makes people want more?
    I mean InsertableContentSource » Blog Archive » WordPress Featured
    Image Plugin For Live Writer is a little vanilla. You
    should glance at Yahoo’s front page and note how they
    create post titles to grab people to open the links. You
    might try adding a video or a related picture or two to get readers interested about everything’ve got to say.
    Just my opinion, it would bring your posts a little livelier.

  11. What’s up, this weekend is pleasant in favor of me, because this time i am reading this enormous educational paragraph here at my house.

  12. source says:

    The fact remains that celebrities make any product
    look good and delectable. What are the advantages the fans get and what are the advantages
    the celebrities get. ‘There was about a week of planning and seeing how
    we were going to get the arms to stay up, and then about a week of building,’ he said.

  13. selena gomez says:

    She also is seen wearing her famous and trendy lion head
    necklaces. “Not only did he want to be unique, but he wanted to tell everybody about it, and he had an apparatus for telling everybody about it. So, could it be that reason so many people are obsessed with celebrities is because they have identified with their inner child and that this inner child is seeing these celebrities as mother and fathers figures.

  14. read source says:

    You can watch the news in your home or mother language too.
    Fury: your auto attacks will enable you to rapidly increase by
    2. Fortunately, some sense prevailed in Congress, and the Comprehensive 1099
    Tax Protection Act of 2010 was passed and signed into law,
    repealing these requirements.

  15. Everything is very open with a clear clarification of the challenges.
    It was really informative. Your website is very helpful.

    Thank you for sharing!

  16. t effective, side effects are severe, complications pop up or there are insurance
    or money issues. KL007, a Korean Air Lines flight, carried 269 people from New York to Seoul.
    Let these two phrases sink in together: avian flu and weakened immune
    systems.

  17. MyFastWire.com…

    Samedi rigolade! – Mon premier blog…

  18. ahok says:

    4 OS – Capacitive Touch Screen & Support Wifi & 3G Connection – 8
    Dynamic Background Pictures – Support Bluetooth Contact Search Function and caller name display – Support Mutual Control
    Between Head Unit & Your Android Smart Phone. People all over the world are very much concerned about the latest news happening in the world.

    Jonas snagged a job in construction back in 2014 after his first born
    arrived and has been laying low ever since.

  19. hacktoid.com says:

    cheats for mobile strike…

    Samedi rigolade! – Mon premier blog…

  20. osws.uk says:

    cara hack instagram…

    Samedi rigolade! – Mon premier blog…

  21. read source says:

    Alarm messages will be archived, and then create a screen view of the
    configuration message, you can save and display system to run all the alarm messages since.
    He is also the co-author of the acclaimed The Sharp – Brains Guide
    to Brain Fitness: How to Optimize Brain Health and Performance at Any Age
    (2013). If any cricketer turns into actor it makes headlines of Hindi Bollywood
    news.

  22. Hurrah, that’s what I was exploring for, what a material!

    present here at this webpage, thanks admin of this web site.

  23. What’s up to every single one, it’s genuinely a good for me to
    visit this website, it includes priceless Information.

  24. Web Site says:

    obviously like your web site but you need to take a look at the
    spelling on quite a few of your posts. A number of them are rife with spelling issues and I in finding it very troublesome to
    inform the truth nevertheless I will certainly come back again.

  25. google.com says:

    These can be their hair colors, the skin tones, their figures,
    etc. Secondly, she pledges a gothic, anti-Christ style
    that is legendary. And it doesn’t matter what these celebrity’s do; for in today’s world they don’t need to have achieved or done anything.

  26. [...] 参考自:wordpress-featured-image-plugin-for-live-writer 感谢作者的插件。 [...]

  27. Nucific bio x4…

    Samedi rigolade! – Mon premier blog…

  28. web site says:

    I know this site presents quality dependent articles or reviews and additional stuff, is there any other web site
    which presents these kinds of data in quality?

  29. Sitongbaihua.Com…

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

  30. more resources…

    Samedi rigolade! – Mon premier blog…

  31. site…

    Samedi rigolade! – Mon premier blog…

  32. optionsxo binary options…

    Samedi rigolade! – Mon premier blog…

  33. grounding mat…

    Samedi rigolade! – Mon premier blog…

  34. I’m impressed, I have to admit. Seldom do I encounter
    a blog that’s equally educative and entertaining, and without a
    doubt, you have hit the nail on the head. The issue is an issue that too few
    people are speaking intelligently about. I’m very happy I stumbled across
    this during my hunt for something regarding this.

  35. The fineest option i need to earn money fast online entry your
    fundxs while touring in Costa Rica relies on your budget, size of keep, present crdit card debt, and mathematical capacity.

  36. male enhancement vitamins…

    Samedi rigolade! – Mon premier blog…

  37. פורץ מנעולים בחולון…

    Samedi rigolade! – Mon premier blog…

  38. zp-time.com…

    Samedi rigolade! – Mon premier blog…

  39. football game online…

    Samedi rigolade! – Mon premier blog…

  40. תיקון מנעולים לרכב…

    Samedi rigolade! – Mon premier blog…

  41. homework thereafter…

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

  42. available online…

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

  43. www.Scoop.it says:

    Oppen Knowledge Founddation creatdd in December 2013 thee BSIN (brand marketing manager jobs (http://www.Scoop.it) Standard Identification Number).

  44. פריצת רכבים בפתח תקווה…

    Samedi rigolade! – Mon premier blog…

  45. לימוד מנעולנות רמת השרון…

    Samedi rigolade! – Mon premier blog…

Leave a Reply

[InsertableContentSource is proudly powered by WordPress.]