Linux 软件免费装

Custom Post Links

开发者 grosbouff
更新时间 2016年12月14日 17:56
捐献地址: 去捐款
PHP版本: 3.5 及以上
WordPress版本: 4.6.1
版权: GPLv2 or later

标签

links related links quick links custom links post links

下载

详情介绍:

This plugin has moved to https://wordpress.org/plugins/post-bookmarks. Please upgrade !

安装:

  1. Upload the plugin to your blog and Activate it.

屏幕截图:

  • Custom Post Links metabox in the backend editor
  • Settings page
  • Links displayed under a post

常见问题:

How can I style a link based on its domain, using CSS ?

Use the data-cp-link-domain attribute, for example : li.cp-links[data-cp-link-domain='wikipedia.org'] .cp-links-favicon { background-image: url('https://wikipedia.org/static/favicon/wikipedia.ico'); }

How can I change the way links are displayed ?

Use the filter cp_links_output_single_link (located in the cp_links_output_single_link function), for example : `<?php function custom_output_single_link($output,$link){ return $output; } add_filter('cp_links_output_single_link','custom_output_single_link',10,2); ?>`

更新日志:

2.0.7 2.0.6 2.0.5 2.0.4 2.0.3 2.0.2 2.0.1 2.0 1.0