Related Links Customized By Page
v1.1raytri · 2012年2月1日 上架
This plug-in lets you use a single line of code to display related links customized to each page on your site.
- 正在使用
- 10+
- 评分
- 暂无
- 累计下载
- 2,517
- 最近更新
- 2012年2月4日
需要 WordPress 3.3+已测试到 3.3.2
贡献者
This plug-in lets you use a single line of code to display related links customized to each page on your site.
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.
To have a link show up on a given page:
- Put
<?php srd_make_custom_link(); ?>anywhere you want a link list to appear. - 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.
That will display a list of links with the class “related-link”, and an <h3> 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;”.