這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

WP Specific Comment

外掛說明

WP Specific Comment provides a template tag for use anywhere in your theme, inside or outside The Loop. This template tag will return a specific comment as an object, from which you can retrieve any standard comment data.

Template Tag

To initiate the plugin, place <?php wp_specific_comment($ID); ?> into your theme, where $ID will be the ID number for the comment you want returned.

Example:

<?php wp_specific_comment(44); ?> will return the comment with the ID of 44. Pretty simple, right? 

Note: This template tag will not actually display anything. It only sets up a comment to be displayed. You’ll have to add in some other standard WordPress Template Tags to get anything to show up on your blog. List of available Comment Tags can be found here.

Example:

<?php wp_specific_comment(1); ?> <h5 class="comment_author"><?php comment_author_link(); ?></h5> <div class="comment_text"><?php comment_text(); ?></div> 

The above code would retrieve comment with ID of 1, and then display its author (linked to the author’s URL, if provided) in a <h5> followed by a <div> containing the comment’s text content. Still pretty simple!

安裝方式

Installation of WP Specific Comment is quick and easy.

  1. Upload wp-specific-comment.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place <?php wp_specific_comment($ID); ?> in your templates, where $ID is will be the numerical ID for the comment you want returned.
  4. Add additional WordPress Comment Tags to display the desired data.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈WP Specific Comment〉的開發相關工作。

參與者

將〈WP Specific Comment〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄