This is a short blog post, to quickly share with you how to enable automatic social media sharing of custom post type content, in WordPres, via the Jetpack plugins’ Publicise module.
In case you don’t know what the WordPress Jetpack plugin is – and what its Publicize module does – here’s a short backstory: the Jetpack WordPress plugin is a bunch of mini-plugins (called modules) bundled together in one rather awesome WordPress plugin. It’s made by Automattic, the commercial company backing WordPress. They also run WordPress.com – the official, hosted WordPress solution. And that’s how the Jetpack plugin came to fruition: it’s a plugin offering some of the innovations and features from WordPress.com to be used on self-hosted WordPress sites and blogs.
Jetpack is definitely one of the best WordPress plugin. I consider it essential to any WordPress installation! Apart from the Publicise module, you also get:
- Simple statistics, right there in your WordPress dashboard.
- Social sharing buttons that work as intended.
- Spellchecking that warns you about clichés, hidden verbs, complex language, and more.
- Image carousel and fashionable tiled image galleries.
- And sooo much more!
Anyway, to cut a long story short:
I just spend some time activating the Publicize module in the Jetpack plugin and subsequently enabling / setting up the various connections to my Google+, Facebook, Twitter, LinkedIn profiles… and even creating a Path account! Gotta keep up with the Joneses you know! Heck, I even resurrected my old Tumblr profile:) Feel free to befriend me by the way!
But when I went to one of my custom post types… Keine (nada) Publicize settings there! So I started running home to ask my all-knowing bigbrother Google for help.
But did he have an answer? No, not a clear one. Most of the results were forum threads, and most of them dead ends, albeit promising ones at that. So I was ready to abandon my mini-project of getting my custom post types automatically shared via Jetpack’s otherwise neat Publicize module.
But then I found a forum post at the WordPress.org forums, only 1 (one!) day old, announcing:
An update to let you know that since Jetpack version 2.8, you cnan now add Publicize support to your Custom Post Types:
Rejoice! Happy dance! And waddya know? It even works!
Simply add publicize to the “supports” array of your custom post type, in the functions.php file, found in your theme folder (provided you’ve created your custom post type there).
‘supports’ => array ( ‘title’, ‘editor’, ‘excerpt’, ‘publicize’, ‘thumbnail’, ‘comments’, ‘revisions’, ‘custom-fields’, ‘page-attributes’, ),
And then it works:)