Tags: syndication, indieweb, indiewebcamp, POSSE, social media, sharing
Requires at least: 4.7
Requires PHP: 5.3
Tested up to: 4.9.8
Stable tag: 4.0.2
License: GPLv2 or later
A simple way to link to copies of your cross-posted content in other social networks or websites. Now with posting UI.
It supports adding rel-syndication/u-syndication links to your posts, pages, and comments, indicating where a syndicated copy is. You can do this manually and some plugins support automatically adding their links as well. The plugin contains a generic UI for syndicating to other sites via the Classic Editor or a Micropub Client. There is limited support built in.
1. Example of Syndication Links metabox with links filled in
2. Example of output display on website
- Upload the folder 'syndication-links' to the '/wp-content/plugins/' directory
- Activate the plugin through the 'Plugins' menu in WordPress
Or install through the WordPress Plugin Directory.
Privacy and Data Storage Information
This plugin stores syndication links, which can be attached to any post, page, or comment. They can be added to custom post types by filter.
For webmention initiated comments, this information will be added by parsing the source of the webmention. It is assumed if you send a webmention, you consent to share this information if it is publicly shared on your page. Our recommendation is that site owners should take down information on request.
For comments initiated on the site, there is built-in way to add these links. For posts, they are typically added by retrieving information stored by other plugins for display. It is assumed that by installing this plugin, as its intent is to display these links, that you wish to display them.
Settings for the Syndication Links plugin can be found in the main WordPress "Settings" tab in the admin dashboard, or if the Indieweb plugin is installed, under the Indieweb tab. The options provided allow for various ways of presenting the syndication links in posts. Syndication Links by default will add links to the content. You can remove this in your plugin if you wish to call the display function directly.
The settings include the following options as follows with either a set of buttons, a check box (with a check indicating that the feature is "on") or an optional text field:
- Display Text - Offers options to display text only, icons only, icons and text, and no display(hidden icons).
- Size - Choice of small, medium, or large size icons.
- Black Icons - Checking the box defaults to a "black" social media icon set.
- Show on Front Page, Archive Page, and Search Results - If checked the icons will show on pages other than a single view. If not checked, the icons will be hidden by the links will remain.
- Show on Feed - If checked the icons will show in your RSS feed as well
- Text Before Links - This is the text that appears before the Display Text/Icons (as indicated above). The default text is "Syndicated to:" but can be modified if desired.
Note: The particular CSS of your theme may change the display and output of the text and some of the icons.
Supported POSSE plugins and implementations
The plugin supports automatically pulling data from plugins that syndicate your content so you don't need to do it manually. For anything not built in, integation is easy with a simple filter for potential use with any other plugin.
- Social Networks Autoposter - Syndication Links supports Twitter, Facebook, and Tumblr since version 1.0.0
- Medium - Syndication Links supports since version 3.0.5
- Tumblr Crosspostr - Supports Syndication Links since version 0.8.1
- WordPress Crossposter - Supports Syndication Links since version 0.3.2
- Diaposter - Supports Syndication Links since version 0.1.8
Using the optional Syndication feature(disabled by default) you can syndicate your posts to:
- Indienews - A curated list of Indieweb related articles
- Bridgy - Bridgy is a service that allows you to post to various sites. Signup is required. It currently supports Twitter, Github, and Flickr
Will be looking to integrate with other plugins to add more options. The goal of the interface is not only can you syndicate via Micropub, but in the classic editor using a simple checkbox.
Frequently Asked Questions
How do I prevent the links from being automatically added to the content?
You will have to remove the content filter
remove_filter( 'the_content', array( 'Syn_Config', 'the_content' ) , 30 ) and then you can call get_syndication_links() directly in your theme.
get_syndication_links( $object, $args ) - Returns the HTML for $object. $object can be a post_ID, a WP_Post object, or a WP_Comment object. ** $args ***style
- Defaults to ul ***text
- Display text, defaults to settings option ***icons
- Display icons, defaults to settings option ***container-css
- Class to wrap entire syndication links in ***single-css
- Class to wrap a single link in ***text-css` - Class to wrap the text before the links in
How can I look up the original if I have a syndication link?
If you add
?original-of= and the URL-encoded URL it will return the post that has that URL stored. As no two posts should have the same two syndication links it will by default only return the first.
What filters are available to modify output?
syn_rewrite_secure( $domains )- $domains is an array of domain names to rewrite to https if found
syn_metabox_types( $screens )- $screens would be an array of post types to add the Syndication Link metabox to.
syn_network_strings( $strings )- $strings is an array of descriptive text strings by domain name
syn_add_links( $urls, $post_ID )- $urls is an array of retrieved links from $post_ID
syn_links_display_defaults( $defaults )- Filter the defaults for displaying Syndication Links
How do I contribute or file bug reports?
Development and bug reports on this plugin is on Github at https://github.com/dshanske/syndication-links
This version includes the ability to syndicate to external sites. This is disabled by default
Upgrade to this version moves the location of stored syndication links to match the changes in the Micropub plugin. Recommend that all users back up prior to upgrade in the event of accidental corruption.
Version 3.0 removes the two sets of icon fonts in favor of SVG icons. If this is a concern, do not upgrade at this time. Version 3.0 also removes rel-me support from this plugin as this support is being built into the Indieweb plugin. Please install that.
Removes H-Card Widget as does not fit into this plugin. Moving over to the Indieweb plugin although there is a possibility it may not stay there.
In no particular order...
- The Indieweb community of users and all users of this plugin
- Meitar Moscovitz for fixes and code contributions related to support of the plugin in his various plugins.
- Justin Tadlock for the initial Social Icons design.
- Jihaisse and Peter Molnar for the SNAP, courtesy of WordPress Syndication
- Simple-Icons for their icon packs for logos. Simple Icons is licensed under CC0 v1.0 Universal.
- Genericons Neue for their generic icon packs. Genericons Neue is licensed under the GPLv2.
- Chris Aldrich for many suggestions on improving the display and for screenshots.
- PHPCS is used with the WordPress and PHP Compatibility Standards in order to ensure compatibility with supported versions of PHP and enact WordPress Coding Standards.
- Travis-CI is used to actively test against various PHP versions
Version 4.0.2 ( 2018-11-05 )
- Fix PHP notice about incorrect setting
- Restore Bridgy global settings options that were in the Bridgy plugin to disable the link back to the post and ignore whitespace
Version 4.0.1 ( 2018-11-03 )
- Fix issue with settings caused in previous version
- Add base Bridgy class to store settings
- Fix issue with display
Version 4.0.0 ( 2018-11-01 )
- Add support for syndicating posts using an interface to any arbitrary provider
- include support for syndicating from Micropub to any arbitrary provider
Version 3.4.1 ( 2018-05-06 )
- Refresh Simple Icons
- Remove internationalization of icon names
- Update development environment
- Add Syndication data to JSONFeed
- Do not add syndication information to the content of a jsonfeed
- Add privacy notice to readme
Version 3.4.0 ( 2018-03-03 )
- Updated Simple Icons to latest version
- Switched Genericons Neue to a submodule as the svg version was not distributed in the npm package
- Added support for Mastodon Auto Post per request. Unable to test due not using same
- Added support for Keyring Social Importer. Unable to test due not using same
- Simplified saving of metadata
- Changed Metabox to a dynamically generated array
Version 3.3.2 ( 2018-02-03 )
- Updated Simple Icons to latest version
Version 3.3.1 ( 2018-01-04 )
- Updated Simple Icons to latest version
- Support for pulling data out for SNAP out of Post Meta without dependence on SNAP classes
Version 3.3.0 ( 2017-12-?? )
- Switched to Simple Icons as larger, updated, and maintained more frequently than Automattic's Social Icons repo
- Added in the Genericon Neue pack for when there is no logo for a site with a series of generic icons
- SVG Sprite only will be distributed instead of individual SVG files
- Icon colors automatically generated from Simple Icons repository
- Icon names automatically generated from Simple Icon repository
- New code to try and find an icon without hard coding the domain to icon relationship by trying to find the icon name inside the domain string.
- Development tools now configured for bringing in PHPCS Coding Standards and generating new files
- License information included for the plugin as well as dependencies
- Again, automation automation automation
Version 3.2.4 ( 2017-11-23 )
- Changelog will now note a release date
- Added/redid colors for many links
- Remove Social Support as Plugin is no longer listed in WordPress repository
- Add additional syndication icons
- Fix textdomain issues
- Add PHP Compatibility tests and textdomain tests
- PHPCS Improvements
- Add setting for disabling links in feed
- Remove H-Card Widget
- Break add
get_syndication_links functioninto smaller pieces ( props @Ruxton )
get_syndication_links_elementswhich returns array of anchor tags
get_syndication_links_display_defaultsto return default options
get_syndication_links_text_beforeto return textbefore on it's own
- Add support for comment syndication links
- Add CSS for styling text before
- Fix documentation re priority of content filter
- Remove empty check as interfering with filter
- Add uniqueness check after filter
- Cleanup of settings attributes using enhancements available in WordPress 4.7
- Individual SVG icons and code to generate an SVG sprite now included in the plugin
- Option to have hidden links now available
- Small Medium and Large CSS files are included by option - generated by sass
- Option to disable links being added to content removed as they can now be hidden. Any theme that wants to call the display function directly will have to remove the content filter
- Add arguments to
get_syndication_linksto allow for customized presentation
?original-of=urlwith url being the syndication URL will return the original entry.
- Change storage of syndication links in order to match Micropub plugin. Storage is now array
- Remove old property once migrated to new
- Remove JSON REST filter as deprecated
- Add support for the official Medium plugin per request @chrisaldrich
- Compatibility update
- Add textdomain for language support
* Adjust close bracket
* Fix text display issue
* Remove icon fonts in favor of SVG * Remove rel-me support to move to implementation in Indieweb plugin * Remove h-card support to move to implementation in Indieweb plugin (it wasn't very good anyway) * Introduce new get_syndication_data function to abstract out storage
* Removed user meta code
* Minor Tweaks and Cleanup
* CSS fixes * Version number added to CSS import to avoid caching on update
* Misc. Bug Fixes * Bridgy Publish Support removed - new Bridgy plugin will handle that
* Rewritten to remove global scoping * Option to add URLs to the head of the home page for rel-me auth * Option to add URLs as a widget for rel-me auth
* Security Fix. Nothing new
* Refinements * Add support for pages and a filter to add additional content types
* Refinements * Addition of h-card widget. * Improvements to hooks * Addition of automatic information from SNAP and Social(courtesy WordPress Syndication). * Now supports second font choice and choice of color or black.
* Add hooks and functions to allow additional urls to be added
* Clean up the plugin for initial release to WordPress repository.
* Moved to simplified data structure. * Hidden migration function
* Rewriting using Grunt/SASS for more flexibility
* Customizable Networks finished. * Changed social icons CSS to automatically add only if the class for the list has social-icon in it.
* Settings Screen rewritten using WordPress Settings API. * Going to rewrite with customizable networks and thus option to disable sites you do not syndicate to. * Added social icons CSS to automatically add icons to anything in a <LI>
* Forked from the Semantic Comments plugin. Start of configurable options.