Linux 软件免费装
Banner图

Syndication Links

开发者 dshanske
更新时间 2026年11月10日 02:05
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later

标签

sharing syndication indieweb POSSE

下载

4.5.0 4.4.20 4.5.1 4.5.2 3.2.4 3.3.0 3.3.2 3.4.0 3.4.1 4.0.0 4.0.1 4.0.2 4.0.3 4.0.5 4.1.0 4.1.1 4.1.2 4.1.4 4.2.0 4.2.1 4.2.2 4.2.3 4.2.5 4.3.0 4.3.1 4.3.2 4.3.3 4.4.21 3.1.1 4.4.7 3.0.3 3.2.3 4.3.5 4.3.6 4.3.8 4.2.4 4.3.10 4.3.4 4.3.9 4.4.0 4.4.1 4.4.2 4.4.4 4.3.11 4.3.12 4.4.5 4.4.10 4.4.12 4.4.11 4.4.16 4.4.8 3.2.0 3.3.1 4.1.3 4.4.17 4.4.9 4.4.18 4.4.19 3.0.2 3.0.4 3.0.5 3.1.0 3.2.1 3.2.2 4.0.4 4.2.6 4.3.7 4.4.13 4.4.14 4.4.15 4.4.3 4.4.6 4.5.3 5.0.0

详情介绍:

Syndication Links is a WordPress (and ClassicPress) plugin, available from the WordPress.org plugin directory. It supports adding links to your WordPress posts, pages, and comments, indicating where a syndicated copy is, in the form of a text or icon link. You can do this manually or with supported plugins. Also contains a generic UI for syndicating to other sites through your site or a Micropub Client.

安装:

  1. Upload the folder 'syndication-links' to the '/wp-content/plugins/' directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
Or install through the WordPress Plugin Directory.

屏幕截图:

  • Links to a post's copies shown after it as brand-coloured icons

升级注意事项:

Version 5.0.0 Requires PHP 7.4 and WordPress 6.2 or later, or ClassicPress. Private posts are never syndicated, and trashing a post deletes its Bridgy copies. HTML from the syn_link_title filter is escaped. Medium links are shown only once imported, from the new Import tab. Only about 80 brand icons are bundled. Version 4.4.0 Several core function and filter signatures have changed and may cause some compatability issues. Version 4.2.0 You will have to set up your enabled providers as this setting has changed Version 4.0.4 Support for Indienews is no longer bundled with this plugin due spam issues. Indienews is dedicated for Indieweb related news. Version 4.0.0 This version includes the ability to syndicate to external sites. This is disabled by default Version 3.0.5 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 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. Version 3.2.2 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.

常见问题:

How does a theme place the links itself?

Declare support in the theme's functions.php, on after_setup_theme like other theme features: add_theme_support( 'syndication-links' ); The plugin then stops adding the links after the post content and after each comment, and the settings page says the theme places them. To take over only one of them, list it: add_theme_support( 'syndication-links', array( 'content' ) ) or array( 'comments' ). Then output the links where the theme wants them with get_post_syndication_links() and get_comment_syndication_links(). The display settings (icons or text, size, text before the links) still apply. The older filters still work, and are now checked when the links would be added, so it doesn't matter when they're added: add_filter( 'syndication_links_display', '__return_false' ); for the post content, and syndication_links_comment_display for comments.

  • `get_post_syndication_links( $post, $args ) - Returns the HTML for a post.
  • get_comment_syndication_links( $comment, $args ) - Returns the HTML for a comment. ** $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 ***targets` - Whether to add Bridgy targets as empty links, which Bridgy looks for on the post's page. Defaults to true

Which template tags can a theme use?

  • the_syndication_links( $post, $args ) and the_comment_syndication_links( $comment, $args ) display the links. get_post_syndication_links() and get_comment_syndication_links() return them instead.
  • syndication_links_display_mode() returns how links are shown on the current page: icons, text, iconstext or hidden.
The display settings apply to all of them. A theme's arguments change how visible links look, but when the site hides the links, they stay hidden (as invisible microformats markup).

How do I show the links somewhere else, such as a theme's entry footer?

Many themes have their own hooks, such as Genesis's genesis_entry_footer. To show the links there instead of after the content, add this to a child theme's functions.php, or to a small plugin: add_action( 'after_setup_theme', function () { add_theme_support( 'syndication-links', array( 'content' ) ); } ); add_action( 'genesis_entry_footer', function () { the_syndication_links(); } ); The first line stops the plugin adding the links after the content. The second shows them on the theme's hook; use whichever hook your theme offers. the_syndication_links() is new in 5.0.0. Keep the links inside the post's h-entry markup, so they're still read as its syndication links.

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. If you want to do this with a form, there is a function you can add to your theme called get_original_of_form() and a widget that calls this. Like the search form if you have a originalofform.php in your theme folder the function will return it so you can customize the form.

How do I find the posts I syndicated to a site?

Add ?syndication= and a domain, such as ?syndication=mastodon.social, to your site's address. It lists the posts with a syndication link to that domain. A full URL works too: its domain is used. It combines with WordPress's other query parameters, so ?syndication=mastodon.social&s=widgets searches those posts for "widgets".

Why does a link show a generic icon instead of the site's?

The plugin bundles icons for about 80 services: the common social networks, the Fediverse, the sites it can syndicate to, and the networks other cross-posting plugins post to, plus icons for retired services such as Google+ that old posts still link to. A link to any other site shows the generic website icon. The Icons tab of the settings page lists the sites your posts and comments link to that show the generic icon, with how many links each has (or run wp syndication-links icons missing). From there you can check them for Fediverse software, which links saved before 5.0.0 haven't had, and report any of them: Report opens a GitHub issue with the domain filled in, for you to send. If Simple Icons has a site's icon, Add next to it downloads it. The icon comes from the same Simple Icons release as the bundled ones and is stored in your uploads folder (wp syndication-links icons add <name> does the same). To have matching icons added as links are saved, turn on the "Add Icons Automatically" setting. You can also open an issue yourself with the domain and, if it has one, its Simple Icons name. To add an icon on your own site, put an SVG named after the domain (example.svg for example.com) in a directory and add it to the search list: add_filter( 'syn_icon_file_dirs', function ( $dirs ) { $dirs[] = get_stylesheet_directory() . '/icons'; return $dirs; } ); Use the syn_link_title filter for its name and syn_link_icon_color for its colour, or syn_link_mapping to point a domain at an icon with a different name.

Why do links to my Mastodon server show a generic icon?

Fediverse servers run on any domain. When a link to a site without a known icon is saved, the plugin asks that site in the background which software it runs, and shows its icon: Mastodon, Pixelfed, PeerTube, Lemmy, Misskey and others, or the ActivityPub icon for software without one. Until that check has run, or if it's turned off with the "Detect Fediverse Servers" setting, the plugin also uses the Mastodon icon for:

  • the servers in your users' profiles: the mastodon user field, which the IndieWeb plugin adds as "Mastodon Server (URL)". Enter your profile URL, such as https://masto.ai/@username.
  • the server set in XPoster or Mastodon Autopost, if you use them.
  • servers whose name is "mastodon", such as mastodon.social or mastodon.online, which match the icon by name.
You can also use the syn_link_mapping filter to return mastodon for any URL.

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_add_links( $urls, $post_ID ) - (Deprecated) $urls is an array of retrieved links from $post_ID
  • get_post_syndication_links( $urls, $post_ID) - Replaces syn_add_links.
  • get_comment_syndication_links( $urls, $comment_ID - Filters an array of retrieved comment syndication links.
  • syn_links_display_defaults( $defaults ) - Filter the defaults for displaying Syndication Links
  • syndication_link_checked( $checked, $uid, $post_ID ) - Will check a syndication provider($uid) when loaded. The post ID is passed through to allow more specific targeting.
  • syndication_link_disabled( $disabled, $uid, $post_ID ) - Will disable the checkbox for a syndication provider($uid) when loaded. The post ID is passed through to allow more specific targeting.
  • syn_link_title( $title, $name ) - Allows you to set the title string for Links. Example, pinboard => Pinboard.
  • syn_link_mapping( $icon, $url ) - Allows you to override or set the mapping from URL to icon name.
  • syn_link_rel( $rels, $url ) - The rel values of a syndication link: nofollow, plus syndication on a single post's page. Remove nofollow to let search engines follow the links.
  • pre_syn_link_icon( $icon, $name ) - Allows you to provide a custom icon. Icons by default are SVG, not URL or filenames.
  • syn_link_fediverse_software( $map ) - The icons for Fediverse software, keyed by the lowercase software name a server reports in its NodeInfo, such as 'akkoma' => 'pleroma'. Software that isn't listed gets the ActivityPub icon if it speaks ActivityPub.
  • syn_link_icon_color( $color, $name ) - An icon's brand colour as a hex value such as #1185FE, or null for none (the icon then takes the link's colour). Use it to colour an icon you've added. Output as the --syn-icon-color CSS custom property.
  • syndication_links_display( true ) - Adds Syndication Links to content display. Set to false if the theme supports this, or declare add_theme_support( 'syndication-links' ).
  • syndication_links_comment_display( true ) - Adds Syndication Links after each comment. Set to false if the theme places them.
  • syndication_links_feed_display( true, $feed_type, $post_id ) - Whether a feed shows the post's links: after the content in RSS and Atom, and as syndication in JSON Feed. The Micro.blog provider turns them off in its own feed.
  • syndication_links_delete_copies( $copies, $post ) - The copies deleted when a post is trashed or deleted: their URLs, keyed by provider UID. Return an empty array to keep them.

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

更新日志:

Version 5.0.0 ( 2026-11-09 ) Version 4.5.3 ( 2025-07-05 ) Version 4.5.2 ( 2025-02-16 ) Version 4.5.1 ( 2024-12-08 ) Version 4.5.0 ( 2024-12-08 ) Version 4.4.21 ( 2024-09-28 ) Version 4.4.20 ( 2024-05-12 ) Version 4.4.19 ( 2024-03-12 ) Version 4.4.18 ( 2024-03-12 ) Version 4.4.17 ( 2024-03-12 ) Version 4.4.16 ( 2024-02-25 ) Version 4.4.15 ( 2023-12-05 ) Version 4.4.14 ( 2023-12-01 ) Version 4.4.13 ( 2023-10-21 ) Version 4.4.12 ( 2023-10-01 ) Version 4.4.11 ( 2023-5-28 ) Version 4.4.10 ( 2023-05-28 ) Version 4.4.9 ( 2023-05-22 ) Version 4.4.8 ( 2023-05-22 ) Version 4.4.7 ( 2023-02-18 ) Version 4.4.6 ( 2023-02-10 ) Version 4.4.5 ( 2023-02-10 ) Version 4.4.4 ( 2023-01-24 ) Version 4.4.3 ( 2023-01-02 ) Version 4.4.2 ( 2022-12-25 ) Version 4.4.1 ( 2022-12-20 ) Version 4.4.0 ( 2022-12-19 ) Version 4.3.11 ( 2022-05-14 ) Version 4.3.10 ( 2022-02-13 ) Version 4.3.9 ( 2022-01-11 ) Version 4.3.8 ( 2022-01-08 ) Version 4.3.7 ( 2021-11-02 ) Version 4.3.6 ( 2021-07-24 ) Version 4.3.4 ( 2021-06-12 ) Version 4.3.3 ( 2021-02-28 ) Version 4.3.2 ( 2021-02-28 ) Version 4.3.1 ( 2020-12-12 ) Version 4.3.0 ( 2020-10-13 ) Version 4.2.6 ( 2020-08-15 ) Version 4.2.5 ( 2020-08-03 ) Version 4.2.4 ( 2020-08-01 ) Version 4.2.3 ( 2020-06-28 ) Version 4.2.2 ( 2020-03-26 ) Version 4.2.1 ( 2019-12-21 ) Version 4.2.0 ( 2019-12-15 ) Version 4.1.4 ( 2019-11-18 ) Version 4.1.3 ( 2019-07-01 ) Version 4.1.2 ( 2019-05-12 ) Version 4.1.1 ( 2019-04-13 ) Version 4.1.0 ( 2019-02-09 ) Version 4.0.5 ( 2019-01-05 ) Version 4.0.4 ( 2018-12-29 ) Version 4.0.3 ( 2018-12-08 ) Version 4.0.2 ( 2018-11-05 ) Version 4.0.1 ( 2018-11-03 )