=== Linkify Posts === Contributors: coffee2code Donate link: http://coffee2code.com/donate Tags: post, id, link, template, coffee2code Requires at least: 2.8 Tested up to: 3.0.1 Stable tag: 2.0 Version: 2.0 Turn a string, list, or array of post IDs and/or slugs into a list of links to those posts. == Description == Turn a string, list, or array of post IDs and/or slugs into a list of links to those posts. 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. == Installation == 1. Unzip `linkify-posts.zip` inside the `/wp-content/plugins/` directory for your site (or install via the built-in WordPress plugin installer) 1. Activate the plugin through the 'Plugins' admin menu in WordPress 1. Insert function call(s) to your templates to display links to posts when post IDs are known == Template Tags == The plugin provides one template tag for use in your theme templates. = Functions = * `` Displays links to each of any number of posts specified via post IDs = Arguments = * `$posts` A single post ID/slug, or multiple post IDs/slugs defined via an array, or multiple posts IDs/slugs defined via a comma-separated and/or space-separated string * `$before` (optional) To appear before the entire post listing (if posts exist or if 'none' setting is specified) * `$after` (optional) To appear after the entire post listing (if posts exist or if 'none' setting is specified) * `$between` (optional) To appear between all posts * `$before_last` (optional) To appear between the second-to-last and last element, if not specified, 'between' value is used * `$none` (optional) To appear when no posts have been found. If blank, then the entire function doesn't display anything = Examples = * These are all valid calls: `` `` `` `` `` `` `` `` `` `` `` `` * `` Outputs something like: `Some Post, Another Post` * Assume that you have a custom field with a key of "Related Posts" that happens to have a value of "43 92" defined (and you're in-the-loop). `ID, 'Related Posts', true), "Related posts: "); ?>` Outputs something like: `Related posts: Some Post, Another Post` * `