{"id":16701,"date":"2012-02-01T01:33:19","date_gmt":"2012-02-01T01:33:19","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/related-links-customized-by-page\/"},"modified":"2012-02-03T23:59:47","modified_gmt":"2012-02-03T23:59:47","slug":"related-links-customized-by-page","status":"publish","type":"plugin","link":"https:\/\/cn.wordpress.org\/plugins\/related-links-customized-by-page\/","author":8923944,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1","stable_tag":"trunk","tested":"3.3.2","requires":"3.3","requires_php":"","requires_plugins":"","header_name":"Related Links Customized By Page","header_author":"Steven Ray","header_description":"","assets_banners_color":"","last_updated":"2012-02-03 23:59:47","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/stevenray.name","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2076,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.1":"<p>This version adds the ability to create link categories for existing pages on plug-in activation, and can now handle unusual characters in page titles.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[527,13733,175,170,292],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-16701","plugin","type-plugin","status-publish","hentry","plugin_tags-custom","plugin_tags-link-categories","plugin_tags-links","plugin_tags-page","plugin_tags-wp","plugin_committers-raytri"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/related-links-customized-by-page.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plug-in lets you use a single line of code to display related links customized to each page on your site.<\/p>\n\n<p>It does two things: maintains a group of link category names that match your page names, and provides a code snippet to display any links with categories that match the current page.<\/p>\n\n<p>To have a link show up on a given page:<\/p>\n\n<ol>\n<li>Put <code>&lt;?php srd_make_custom_link(); ?&gt;<\/code> anywhere you want a link list to appear.<\/li>\n<li>In the Links tab, create as many links as you want. Then assign each link the category name that matches the page(s) you want it to appear on.<\/li>\n<\/ol>\n\n<p>That will display a list of links with the class \"related-link\", and an <code>&lt;h3&gt;<\/code> with the class \"related-links-title\". You can then style them with CSS. If you want them to stack vertically, give the links the CSS property \"display:block;\".<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>page_link_categories.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Place <code>&lt;?php srd_make_custom_link(); ?&gt;<\/code> in your templates<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Will it work with any page name?<\/dt>\n<dd><p>Yes.<\/p><\/dd>\n<dt>Can a link appear on more than one page?<\/dt>\n<dd><p>Yes. Simply assign that link the category for each page it should appear on.<\/p><\/dd>\n<dt>Can I control the order the links appear in?<\/dt>\n<dd><p>No. They appear in alphabetical order. That, too, is something I plan to add in future releases.<\/p><\/dd>\n<dt>Does it create links for single post pages?<\/dt>\n<dd><p>No. Just static pages -- the ones you see in the \"Pages\" tab.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added activation function that creates link categories based on existing pages.<\/li>\n<li>Can now handle page names with unusual characters.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<p>Initial release<\/p>","raw_excerpt":"This plug-in lets you use a single line of code to display related links customized to each page on your site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/16701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=16701"}],"author":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/raytri"}],"wp:attachment":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=16701"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=16701"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=16701"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=16701"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=16701"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=16701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}