{"id":5688,"date":"2010-08-28T15:10:11","date_gmt":"2010-08-28T15:10:11","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/linkify-posts\/"},"modified":"2025-04-28T06:07:15","modified_gmt":"2025-04-28T06:07:15","slug":"linkify-posts","status":"publish","type":"plugin","link":"https:\/\/lo.wordpress.org\/plugins\/linkify-posts\/","author":3606,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.6","stable_tag":"2.6","tested":"6.8.5","requires":"3.3","requires_php":"","requires_plugins":null,"header_name":"Linkify Posts","header_author":"Scott Reilly","header_description":"","assets_banners_color":"0074a2","last_updated":"2025-04-28 06:07:15","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=6ARCFJ9TX3522","header_plugin_uri":"https:\/\/coffee2code.com\/wp-plugins\/linkify-posts\/","header_author_uri":"https:\/\/coffee2code.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":5362,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"2.0":{"tag":"2.0","author":"coffee2code","date":"2010-08-28 15:10:11"},"2.1":{"tag":"2.1","author":"coffee2code","date":"2011-02-24 22:18:41"},"2.1.1":{"tag":"2.1.1","author":"coffee2code","date":"2011-06-22 02:38:10"},"2.1.2":{"tag":"2.1.2","author":"coffee2code","date":"2012-01-05 04:21:48"},"2.1.3":{"tag":"2.1.3","author":"coffee2code","date":"2012-06-04 05:18:41"},"2.1.4":{"tag":"2.1.4","author":"coffee2code","date":"2012-12-10 18:48:16"},"2.2":{"tag":"2.2","author":"coffee2code","date":"2013-12-21 07:44:13"},"2.2.1":{"tag":"2.2.1","author":"coffee2code","date":"2014-08-27 06:18:37"},"2.2.2":{"tag":"2.2.2","author":"coffee2code","date":"2015-02-12 07:36:30"},"2.2.3":{"tag":"2.2.3","author":"coffee2code","date":"2015-08-13 07:03:01"},"2.3":{"tag":"2.3","author":"coffee2code","date":"2016-04-14 20:18:56"},"2.3.1":{"tag":"2.3.1","author":"coffee2code","date":"2017-03-06 18:51:35"},"2.3.2":{"tag":"2.3.2","author":"coffee2code","date":"2019-03-18 22:03:34"},"2.3.3":{"tag":"2.3.3","author":"coffee2code","date":"2019-11-27 23:56:24"},"2.3.4":{"tag":"2.3.4","author":"coffee2code","date":"2020-05-08 06:56:02"},"2.3.5":{"tag":"2.3.5","author":"coffee2code","date":"2020-08-18 05:45:00"},"2.3.6":{"tag":"2.3.6","author":"coffee2code","date":"2021-04-29 06:23:33"},"2.4":{"tag":"2.4","author":"coffee2code","date":"2021-10-20 07:34:02"},"2.4.1":{"tag":"2.4.1","author":"coffee2code","date":"2023-08-22 22:37:54"},"2.5":{"tag":"2.5","author":"coffee2code","date":"2024-08-20 05:26:30"},"2.6":{"tag":"2.6","author":"coffee2code","date":"2025-04-28 06:07:15"}},"upgrade_notice":{"2.6":"<p>Recommended update: prevented unsafe markup from being output, versioned widget base class to ensure use of expected version, fixed an incorrect string translation textdomain, noted compatibility through WP 6.8+ and PHP 8.3+, and updated copyright date (2025)<\/p>","2.5":"<p>Recommended update: improved widget implementation, added some hardening measures, noted compatibility through WP 6.6+, removed unit tests from release packaging, updated copyright date (2024), and other code improvements and minor changes.<\/p>","2.4.1":"<p>Trivial update: noted compatibility through WP 6.3+, updated unit tests to run against latest WordPress, fixed a typo in documentation, and updated copyright date (2023)<\/p>","2.4":"<p>Minor update: removed support for long-deprecated <code>linkify_post_ids()<\/code>, added DEVELOPER-DOCS.md, noted compatibility through WP 5.8+, and minor reorganization and tweaks to unit tests<\/p>","2.3.6":"<p>Trivial update: noted compatibility through WP 5.7+ and updated copyright date (2021).<\/p>","2.3.5":"<p>Trivial update: Restructured unit test file structure, added a TODO.md file, and noted compatibility through WP 5.5+.<\/p>","2.3.4":"<p>Trivial update: Updated a few URLs to be HTTPS and noted compatibility through WP 5.4+.<\/p>","2.3.3":"<p>Trivial update: modernized unit tests, created CHANGELOG.md to store historical changelog outside of readme.txt, noted compatibility through WP 5.3+, and updated copyright date (2020)<\/p>","2.3.2":"<p>Trivial update: minor hardening, added README.md, noted compatibility through WP 5.1+, updated copyright date (2019)<\/p>","2.3.1":"<p>Trivial update: fixed some unit tests, noted compatibility through WP 4.7+, updated copyright date<\/p>","2.3":"<p>Minor update: minor updates to widget code and unit tests; verified compatibility through WP 4.4; updated copyright date (2016).<\/p>","2.2.3":"<p>Bugfix update: Prevented PHP notice under PHP7+ for widget; noted compatibility through WP 4.3+<\/p>","2.2.2":"<p>Trivial update: noted compatibility through WP 4.1+ and updated copyright date<\/p>","2.2.1":"<p>Trivial update: noted compatibility through WP 4.0+; added plugin icon.<\/p>","2.2":"<p>Moderate update: better validate data received; added unit tests; noted compatibility through WP 3.8+<\/p>","2.1.4":"<p>Trivial update: noted compatibility through WP 3.5+<\/p>","2.1.3":"<p>Trivial update: noted compatibility through WP 3.4+; explicitly stated license<\/p>","2.1.2":"<p>Trivial update: noted compatibility through WP 3.3+ and minor readme.txt tweaks<\/p>","2.1.1":"<p>Trivial update: noted compatibility through WP 3.2+ and minor code formatting changes (spacing)<\/p>","2.1":"<p>Feature update: added widget, added Screenshots and FAQ sections to readme, noted compatibility with WP 3.1+, and updated copyright date (2011).<\/p>","2.0":"<p>Significant update. Highlights: renamed plugin; renamed <code>linkify_post_ids()<\/code> to <code>c2c_linkify_posts()<\/code>; allow specifying post slug as well as ID; dropped compatibility with versions of WP older than 2.8.<\/p>","1.5":"<p>Minor update. Highlights: added filter to allow alternative safe invocation of function; verified WP 3.0 compatibility.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":973759,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":826484,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.0","2.1","2.1.1","2.1.2","2.1.3","2.1.4","2.2","2.2.1","2.2.2","2.2.3","2.3","2.3.1","2.3.2","2.3.3","2.3.4","2.3.5","2.3.6","2.4","2.4.1","2.5","2.6"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":636695,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"The plugin's widget configuration."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[537,7871,86,166,162],"plugin_category":[43],"plugin_contributors":[78189],"plugin_business_model":[],"class_list":["post-5688","plugin","type-plugin","status-publish","hentry","plugin_tags-link","plugin_tags-linkify","plugin_tags-post","plugin_tags-posts","plugin_tags-widget","plugin_category-customization","plugin_contributors-coffee2code","plugin_committers-code2coffee","plugin_committers-coffee2code"],"banners":{"banner":"https:\/\/ps.w.org\/linkify-posts\/assets\/banner-772x250.png?rev=826484","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/linkify-posts\/assets\/icon-128x128.png?rev=973759","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/linkify-posts\/assets\/screenshot-1.png?rev=636695","caption":"The plugin's widget configuration."}],"raw_content":"<!--section=description-->\n<p>The plugin provides a widget called \"Linkify Posts\" as well as a template tag, <code>c2c_linkify_posts()<\/code>, which allow you to easily specify posts to list and how to list them. Posts are specified by either ID or slug. See other parts of the documentation for example usage and capabilities.<\/p>\n\n<p>Particularly handy when used in conjunction with the post custom field feature of WordPress. You could define a custom field for \"Related Posts\" or \"Additional Products\" and manually list out post IDs, then utilize the function provided by this plugin to display links to those posts in a custom manner.<\/p>\n\n<p>Links: <a href=\"https:\/\/coffee2code.com\/wp-plugins\/linkify-posts\/\">Plugin Homepage<\/a> | <a href=\"https:\/\/wordpress.org\/plugins\/linkify-posts\/\">Plugin Directory Page<\/a> | <a href=\"https:\/\/github.com\/coffee2code\/linkify-posts\/\">GitHub<\/a> | <a href=\"https:\/\/coffee2code.com\">Author Homepage<\/a><\/p>\n\n<h3>Developer Documentation<\/h3>\n\n<p>Developer documentation can be found in <a href=\"https:\/\/github.com\/coffee2code\/linkify-posts\/blob\/master\/DEVELOPER-DOCS.md\">DEVELOPER-DOCS.md<\/a>. That documentation covers the template tag and hook provided by the plugin.<\/p>\n\n<p>As an overview, this is the template tag provided by the plugin:<\/p>\n\n<ul>\n<li><code>c2c_linkify_posts()<\/code> : Template tag to display links to each of any number of posts specified via post IDs\/slugs. You can customize text to show before and\/or after the entire listing, between each post, and what to display (if anything) when no posts are listed.<\/li>\n<\/ul>\n\n<p>This is the hook provided by the plugin:<\/p>\n\n<ul>\n<li><code>c2c_linkify_posts<\/code> : Allows use of an alternative approach to safely invoke <code>c2c_linkify_posts()<\/code> in such a way that if the plugin were deactivated or deleted, then your calls to the function won't cause errors in your site.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Install via the built-in WordPress plugin installer. Or install the plugin code inside the plugins directory for your site (typically <code>\/wp-content\/plugins\/<\/code>).<\/li>\n<li>Activate the plugin through the 'Plugins' admin menu in WordPress<\/li>\n<li>Optional: Use the <code>c2c_linkify_posts()<\/code> template tag in one of your templates (be sure to pass it at least the first argument indicating what post IDs and\/or slugs to linkify -- the argument can be an array, a space-separate list, or a comma-separated list). Other optional arguments are available to customize the output.<\/li>\n<li>Optional: Use the \"Linkify Posts\" widget in one of the sidebar provided by your theme.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='what%20happens%20if%20i%20tell%20it%20to%20list%20something%20that%20i%20have%20mistyped%2C%20haven%27t%20created%20yet%2C%20or%20have%20deleted%3F'><h3>What happens if I tell it to list something that I have mistyped, haven't created yet, or have deleted?<\/h3><\/dt>\n<dd><p>If a given ID\/slug doesn't match up with an existing post then that item is ignored without error.<\/p><\/dd>\n<dt id='how%20do%20i%20get%20items%20to%20appear%20as%20a%20list%20%28using%20html%20tags%29%3F'><h3>How do I get items to appear as a list (using HTML tags)?<\/h3><\/dt>\n<dd><p>Whether you use the template tag or the widget, specify the following information for the appropriate fields\/arguments:<\/p>\n\n<ul>\n<li>Before text: <code>&lt;ul&gt;&lt;li&gt;<\/code> (or <code>&lt;ol&gt;&lt;li&gt;<\/code>)<\/li>\n<li>After text: <code>&lt;\/li&gt;&lt;\/ul&gt;<\/code> (or <code>&lt;\/li&gt;&lt;\/ol&gt;<\/code>)<\/li>\n<li>Between posts: <code>&lt;\/li&gt;&lt;li&gt;<\/code><\/li>\n<\/ul><\/dd>\n<dt id='does%20this%20plugin%20have%20unit%20tests%3F'><h3>Does this plugin have unit tests?<\/h3><\/dt>\n<dd><p>Yes. The tests are not packaged in the release .zip file or included in plugins.svn.wordpress.org, but can be found in the <a href=\"https:\/\/github.com\/coffee2code\/linkify-posts\/\">plugin's GitHub repository<\/a>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.6 (2025-04-27)<\/h4>\n\n<ul>\n<li>Hardening: Prevent unsafe markup from being output<\/li>\n<li>Update widget base class to v006:\n\n<ul>\n<li>Hardening: Prevent unsafe markup from being output<\/li>\n<li>Change: Include version number in class name to ensure use of expected version<\/li>\n<li>Change: Move PHPCS-related inline comments with their associated <code>phpcs:ignore<\/code> comments<\/li>\n<\/ul><\/li>\n<li>Fix: Use correct textdomain for a string translation<\/li>\n<li>Change: Note compatibility through WP 6.8+<\/li>\n<li>Change: Note compatibility through PHP 8.3+<\/li>\n<li>Change: Update copyright date (2025)<\/li>\n<li>Unit tests:\n\n<ul>\n<li>Change: Remove vestiges of testing for now-removed <code>linkify_posts()<\/code><\/li>\n<li>Change: Explicitly define return type for overridden methods<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>2.5 (2024-08-19)<\/h4>\n\n<p>Highlights:<\/p>\n\n<p>This recommended release features improvements to widget implementation, adds some hardening measures, notes compatibility through WP 6.6+, removes unit tests from release packaging, updates copyright date (2024), and other code improvements and minor changes.<\/p>\n\n<p>Details:<\/p>\n\n<ul>\n<li>Widget:\n\n<ul>\n<li>New: Extract base widget functionality common amongst my Linkify family of plugins into reusable base class<\/li>\n<li>Change: Define a default 'none' message so that something is shown when no categories are specified<\/li>\n<li>Change: Improve spacing in block editor around widget input field help text<\/li>\n<li>New: Add <code>get_config()<\/code> to retrieve configuration<\/li>\n<li>Hardening: Escape some variables prior to being output<\/li>\n<li>New: Add unit tests<\/li>\n<li>Change: Update version to 005<\/li>\n<\/ul><\/li>\n<li>New: Extract code for creating link to post's archive into new <code>__c2c_linkify_posts_get_post_link()<\/code><\/li>\n<li>Change: Add default values for optional arguments to inline parameter documentation<\/li>\n<li>Change: Note compatibility through WP 6.6+<\/li>\n<li>Change: Prevent unwarranted PHPCS complaints about unescaped output (HTML is allowed)<\/li>\n<li>Change: Add inline comment for translators<\/li>\n<li>Change: Update copyright date (2024)<\/li>\n<li>Change: Reduce number of 'Tags' from <code>readme.txt<\/code><\/li>\n<li>Change: Remove development and testing-related files from release packaging<\/li>\n<li>Hardening: Unit tests: Prevent direct web access to <code>bootstrap.php<\/code><\/li>\n<li>New: Add some potential TODO items<\/li>\n<\/ul>\n\n<h4>2.4.1 (2023-08-22)<\/h4>\n\n<ul>\n<li>Fix: Fix a typo in documentation<\/li>\n<li>Change: Note compatibility through WP 6.3+<\/li>\n<li>Change: Update copyright date (2023)<\/li>\n<li>New: Add <code>.gitignore<\/code> file<\/li>\n<li>Unit tests:\n\n<ul>\n<li>Allow tests to run against current versions of WordPress<\/li>\n<li>New: Add <code>composer.json<\/code> for PHPUnit Polyfill dependency<\/li>\n<li>Change: Prevent PHP warnings due to missing core-related generated files<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<p><em>Full changelog is available in <a href=\"https:\/\/github.com\/coffee2code\/linkify-posts\/blob\/master\/CHANGELOG.md\">CHANGELOG.md<\/a>.<\/em><\/p>","raw_excerpt":"Turn a string, list, or array of post IDs and\/or slugs into a list of links to those posts. Provides a widget and template tag.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/5688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"author":[{"embeddable":true,"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/users\/3606"}],"replies":[{"embeddable":true,"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=5688"}],"wp:attachment":[{"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=5688"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=5688"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=5688"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=5688"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=5688"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=5688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}