Post to WordPress: Chrome extension guide

May 9, 2013| Mike Stott

I thought it would be useful to post up a quick image post (from the Chrome extension) to hopefully help people who may be having issues with getting the extension to Post to WordPress from Chrome.

General

The Chrome extension creates two “browser actions” when you add it to your Chrome.

1.) Right click on a page without an image brings up the Post to WordPress post form

2.) Right click on an image and it brings up the Post Image to WordPress post form (try right clicking the image to the left).

The two forms are ever so slightly different. The simple quick post (without an image) uses the WordPress API to create a new post.

The Post Image to WordPress form creates a new post using the link2featured image plugin.

Why are they different

Well the WordPress API uses XML-RPC and should (ideally) be very easy to create new posts from an extension. However the ability to add an image using XML-RPC requires some fancy binary work which appears to have some issues in the current version. There also appears to be an issue with the XML-RPC response on certain installs where it will return a non-XML object and cause the create a new post to fail.

Also in the modern age of large images, the XML-RPC sends a base64 encoded image string and can cause issues with size of transfer (especially on mobile devices).

The extension doesn’t work

If the extension doesn’t work for you please try the following

Do both ways to post fail?

If both ways to post fail, then this is caused by one of two things.

1.) Your settings are incorrect – the XML-RPC and the post to wordpress plugin check your username and password, and if you have the authority to edit posts. If you don’t have this permission or your credentials are incorrect the create a new post will fail

2.) You have the post 2 wordpress plugin saved in a non standard folder. The extension pings www.example.com/wp-content/plugins/post2wordpresspro/

3.) Is allow url_fopen set to ON on your php.ini file (you may need to ask your host here)

4.) Does your server have cURL installed? If not, speak to them about installing it

If it gets a true reply, it knows that the plugin is installed and knows how to talk to it to create posts.

Only the image post fails

If only the image post fails this could be because of a few things. The main one being you do not have the latest version (v1.5+) of link2featured installed.

If you have it installed, is it in the usual place (i.e. www.example.com/wp-content/plugins/post2wordpresspro) as the extension checks there.

For image posts, there’s a “create new post” check button. Is this checked? If it’s not checked then post button will simply add the image to your WordPress media library and not create a new post. This is so that the extension can be used to create image posts as well as easily add images to your WordPress media Library.

Only the Post to WordPress method fails

If you’re using the Chrome extension without the post to wordpress plugin and are having issues with it creating new posts then it could be a couple of things.

1.) Are you using WordPress v3.5+ the XML-RPC is only enabled by default in WordPress v3.5+ if you’re on an older version you need to enable the XML-RPC under settings -> writing.

2.) Are your credentials correct (username/password) site URL.

The extension has been tested on a couple of different machines using a couple of different blog setups however this is still an early release of the Chrome extension and is likely to have issues that I’ve yet to encounter.

Please do post up any issues you’re having to this post and help me improve the extension

Categories: Uncategorized

5 thoughts on “Post to WordPress: Chrome extension guide”

  1. David

    Hi there,

    is it planned to let the user schedule the hour/time of when the post with an image will the published?

    I’d be very interested in this option.

    Thanks for your answer!

    1. Mike Post author

      Hi, I hadn’t planned this no. Unfortunately I cannot just do a custom mod for you either. 🙁

  2. Randy

    Hello,

    I purchased both the image post and Post to Word Press Pro. I was able to get the image post to work. It was my understanding that it should bring over the text form the original blog, article, etc. It does not do that. If you right click on text it is logical to think it would bring over the text from the page. In my mind like re-posting Did i miss something? Am I doing something wrong?

    1. Mike Post author

      Hi – the image posts over but you have to create your own content to go with it.

      It doesn’t take the post from the website, partly because it’s not the best idea to completely copy other articles and partly because all sites have different markup making a program know what to take isn’t trivial

      Cheers

      1. Randy

        Hey Mike… Thanks for the response. It kind of defeats the purpose for me. I am not doing this full time yet… so posting on the fly is what i was looking for. People re-post articles all the time. Perhaps you can develop an extension to re-post.

Leave a Reply

Your email address will not be published. Required fields are marked *

Rating*