Skip to content
TarekNabil.Net
All projects

Project · WordPress plugin · Private

Smart Post

A WordPress admin plugin that turns uploaded images into blog posts and publishes them one by one on a schedule, with an optional Facebook post every few posts.

Role
Sole architect and developer
Year
2013
Tags
WordPressPHPWordPress PluginAJAXJavaScriptjQuery
The WordPress admin upload screen: a multi-file drop zone with image thumbnails, a scheduling panel with interval and sort options, and a queue of images waiting to be published The WordPress admin upload screen: a multi-file drop zone with image thumbnails, a scheduling panel with interval and sort options, and a queue of images waiting to be published

About the Project

Smart Post is a WordPress admin plugin I built on a client’s request. It makes image posting automatic. The admin uploads a batch of photos, and the plugin creates a post for each one and publishes them on a schedule.

Images can be published in ascending, descending or random order. The post title comes from the image filename. Other settings control the image size, alignment, and whether the title appears under the image in a chosen color. An optional setting posts to Facebook through the Wordbooker plugin every few posts. The plugin also works with Jetpack and the nRelate related-content plugin.

Problem

Publishing a large set of photos by hand takes a lot of time. The client wanted to upload a batch once and have it published over time. The publishing queue also had to keep running while settings changed. Facebook posting and related-content plugins also needed to keep working.

Role

Sole architect and developer. I designed the scheduling and publishing logic, built the multi-file uploader, and implemented the WP-Cron scheduling engine. I also integrated and debugged compatibility with Wordbooker, Jetpack and nRelate. I handled production problems and gave long-term support.

Stack

PHPWordPress Plugin APIWP-CronjQueryCustom cron intervalsOptions APIAJAX endpointsAdmin menu and scriptsMedia import functionsPlupload (Flash, Silverlight, HTML5)jQuery UIIris color pickerWordbooker integration

Outcome

3 Sort orders for scheduled publishing: ascending, descending and random.
3.6 WordPress version the plugin was tested on.
Status: Completed (2013), with long-term support. The client used it in production and reported that it saved significant time.

FAQ

What does the plugin do?

It turns each uploaded image into a blog post and publishes the posts on a schedule.

How is the publishing order set?

The admin chooses ascending, descending or random order.

Where does the title come from?

From the image filename, up to the first dash.

Does it post to Facebook?

Yes, through the Wordbooker plugin, every set number of posts. Wordbooker must be active.

Can it work with related-content plugins?

Yes. The title can be added to the post body, which helped with nRelate.

Which WordPress versions was it tested on?

WordPress 3.6.

Get in Touch

Reach out for any reason: a role, a project, or a question.

Send a message