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

  1. www.bbb.org says:

    sex…

    Samedi rigolade! – Mon premier blog…

  2. fitbit fitness tracker ultra von fitbit…

    Samedi rigolade! – Mon premier blog…

  3. JulieX says:

    I see your blog needs some fresh posts. Writing manually
    takes a lot of time, but there is tool for this boring
    task, search for; unlimited content Wrastain’s tools

  4. Please let me know if you’re looking for a article
    writer for your blog. You have some really good articles and
    I believe I would be a good asset. If you ever want to
    take some of the load off, I’d really like to write some material for your
    blog in exchange for a link back to mine. Please shoot me an email if interested.

    Cheers!

  5. This piece of writing presents clear idea in favor
    of the new users of blogging, that really how to do running a blog.

  6. You are so interesting! I don’t think I’ve truly read through something like that before.
    So good to discover somebody with some unique thoughts on this subject matter.
    Really.. thank you for starting this up. This site is one thing that’s needed on the web, someone with a little originality!

  7. What a data of un-ambiguity and preserveness of valuable know-how on the topic of unpredicted feelings.

  8. Awesome issues here. I’m very satisfied to peer your article.
    Thanks so much and I’m looking ahead to touch you.
    Will you kindly drop me a mail?

  9. Thanks for sharing your thoughts about latest
    true skate apk. Regards

  10. Heya! I’m at work browsing your blog from my new iphone 3gs!
    Just wanted to say I love reading through your blog and
    look forward to all your posts! Carry on the outstanding work!

  11. Sports says:

    I enjoy looking through a post that will make people think.
    Also, many thanks for permitting me to comment!

  12. Yes! Finally someone writes about Affiliate Marketing.

  13. That is a very good tip especially to those fresh to the blogosphere.
    Simple but very accurate information… Appreciate your sharing this one.
    A must read post!

  14. I am really grateful to the owner of this site who has shared this great article at at this place.

  15. Good blog you have here.. It’s hard to find excellent writing
    like yours these days. I honestly appreciate people like you!
    Take care!!

  16. sexy says:

    I am in fact grateful to the holder of this website who has shared this enormous piece
    of writing at at this time.

  17. Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your blog?

    My blog is in the exact same niche as yours and my
    visitors would truly benefit from a lot of the information you provide here.

    Please let me know if this alright with you. Thank you!

  18. Appreciating the time and effort you put into your website and detailed
    information you present. It’s awesome to come across a blog every once in a while that isn’t
    the same out of date rehashed information. Great read!
    I’ve bookmarked your site and I’m adding your RSS feeds to my
    Google account.

  19. Thanks for sharing such a fastidious idea, post is pleasant, thats why i have read it
    fully

  20. Magnificent website. Lots of useful info here.
    I’m sending it to several pals ans additionally sharing in delicious.
    And certainly, thank you in your effort!

  21. cunt says:

    Hello it’s me, I am also visiting this web site daily, this
    web page is in fact fastidious and the people are in fact
    sharing pleasant thoughts.

  22. I was curious if you ever considered changing the
    page layout of your site? Its very well written; I love
    what youve got to say. But maybe you could a little more in the
    way of content so people could connect with it better. Youve got an awful lot of text for only having 1 or 2
    pictures. Maybe you could space it out better?

  23. Hello friends, its great piece of writing on the topic of cultureand fully explained,
    keep it up all the time.

  24. InsertableContentSource » Blog Archive » WordPress Featured Image Plugin For Live Writer
    roger vivier sale http://www.vivierparis.com

  25. mackage sale says:

    InsertableContentSource » Blog Archive » WordPress Featured Image Plugin For Live Writer
    mackage sale http://www.mackagesale.com/mackage-women-c-2/

  26. What’s up, for all time i used to check blog posts here in the early hours in the morning, for the reason that i like to find out more and more.

  27. Wonderful items from you, man. I’ve have in mind your stuff prior to and you’re
    just too magnificent. I actually like what you have acquired here,
    certainly like what you’re stating and the way in which through
    which you are saying it. You’re making it entertaining and you continue to care for to keep it sensible.

    I cant wait to learn far more from you. This is actually a wonderful site.

  28. If some one wishes expert view on the topic of blogging and site-building then i recommend him/her to pay a quick visit this web site, Keep up
    the pleasant job.

  29. Made in UK says:

    It’s going to be end of mine day, except before ending
    I am reading this impressive paragraph to increase my know-how.

  30. eden dating site…

    Samedi rigolade! – Mon premier blog…

  31. Do youu mnd if I quote a few of your posts as long as I povide credit and sources back to your site?
    My blog is in the very same area oof interest as yours and my uszers would truly benefiit from some of the information you proviide here.

    Please let me know if this alright with you. Thanks a
    lot!

  32. I got this web site from my pal who told me concerning this website and at the moment this time I am browsing this website and reading very informative content at this time.

  33. Hi there to every single one, it’s actually a nice for me to pay a quick visit this site, it contains important
    Information.

  34. gearbox oil says:

    Motorists usually and ordinarily consider their
    automotive transmissions for granted. Transmissions whether automatic or guide seem
    to run practically permanently and unquestionably reliably with minimal grievance.
    No question the push practice of any automobile is not only vital
    for automobile motion down roadways and highways.
    Devoid of your trusty, and responsible transmission your car would just be
    caught sound in a single position, unable to
    transfer its wheels what so at any time – even if your engine and motor were
    in a hundred % top rated situation and your gas tank whole of gas.
    Automatic transmissions are additional popular and commonplace because of to their
    ease of use. Nevertheless handbook transmissions – the more mature kind with a clutch arrangement unquestionably supply a good deal much more adaptability and command
    to the driver, use significantly less gasoline and are downright enjoyable to
    drive. How do automotive transmissions get the job done
    and what are their fundamentals?

    Overall it can be simplified that any automotive transmission – be it for automobile,
    truck, Sporting activities Utility Car or truck
    or even freeway tractor is minor far more than a
    box of gears. Transmissions range the velocity and torque of the axle in relation to both
    the speed and torque of your engine. Acquiring the auto to move from a entire standstill involves the biggest torque or turning electricity.
    This is labeled “very first” or “lower” equipment.

    At the time the vehicle is underway, a lot less torque
    is necessary to retain it shifting. The transmission hence
    can be shifted into gears, providing reduced torque and higher speed: second,
    3rd, fourth and sometimes fifth gear, and now
    in a lot more latest and up to date design cars a additional gasoline saving gear –
    overdrive mode.

    There are two other positions of an automotive transmission – reverse for backing up,
    and neutral mode or equipment range – for entire disengagement of the motor from the
    generate shaft and rear wheels.

    Even even though most motorists rarely think of their auto transmission in any way shape or variety and continue on them to
    functionality endlessly routine upkeep can absolutely extend the lifespan as well as reliability of your transmission –
    be it automated or typical type. Repair service expenditures for transmissions are
    relatively pricey. To begin with the unit have to be eliminated from the
    auto. Particularly on more recent sort front stop drive models this is
    complicated thanks to the compact function spaces concerned, advanced and all in all instead
    costly.
    Manuals transmissions have to have plan support, maintenance and inspections as effectively.

    Automobiles very last a lot longer now. It was not
    very long back that the common functioning span of a “lesser” auto with a 4 cylinder motor was only expected to be 40,000 miles.

    Now motorists normally hope triple that distance from a four cylinder engine motor vehicle.
    Consequently get the time, care, and awareness and depth to lengthen the lifespan of your automobiles’ transmission. Changing automatic
    transmission fluid on a bi-annually foundation is 1 excellent start out for this subject.
    In the same implies and method don not fail to remember to modify the oil in your handbook transmissions’ gearbox.
    Just like engine oil steel shavings and crud can accumulate in the oil in the gearbox of
    your guide transmission. It is essentially fairly a easy and easy matter and treatment for your mechanic or services
    office at your reliable regional car dealership services
    department to complete.

Leave a Reply

[InsertableContentSource is proudly powered by WordPress.]