外掛說明
Want to add a simple and efficient post likes button?
This plugin provides the wp_post_likes()
template tag which generates simple and efficient likes button. See the installation instructions for using it in your theme.
Development
Translations
安裝方式
- Open
wp-content/plugins
Folder - Put:
Folder: wp-post-likes
- Activate
WP Post Likes
Plugin
Usage
- Open
wp-content/themes/<YOUR THEME NAME>/index.php
- You may place it in archive.php, single.php, post.php or page.php also.
- Find:
<?php while (have_posts()) : the_post(); ?>
- Add anywhere below it (the place you want the likes button to show):
<?php if ( function_exists( 'wp_post_likes' ) ) { wp_post_likes(); } ?>
* If you DO NOT want the likes to appear in every post/page, DO NOT use the code above. Just type in [wp-post-likes]
into the selected post/page content and it will embed likes into that post/page only.
使用者評論
這個外掛目前沒有任何使用者評論。
參與者及開發者
變更記錄
1.0
- Initial Release