本文整理匯總了PHP中twentyten_continue_reading_link函數的典型用法代碼示例。如果您正苦於以下問題:PHP twentyten_continue_reading_link函數的具體用法?PHP twentyten_continue_reading_link怎麽用?PHP twentyten_continue_reading_link使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了twentyten_continue_reading_link函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: twentyten_custom_excerpt_more
function twentyten_custom_excerpt_more($output)
{
if (has_excerpt() && !is_attachment()) {
$output .= twentyten_continue_reading_link();
}
return $output;
}
示例2: twentyten_custom_excerpt_more
/**
* Adds a pretty "Continue Reading" link to custom post excerpts.
*
* To override this link in a child theme, remove the filter and add your own
* function tied to the get_the_excerpt filter hook.
*
* @since Twenty Ten 1.0
* @return string Excerpt with a pretty "Continue Reading" link
*/
function twentyten_custom_excerpt_more($output)
{
global $post;
if (has_excerpt() && !is_attachment()) {
// don't show continue link for nh_message types
if (post_type_exists('nh_message') && $post->post_type == 'nh_message') {
return $output;
}
// add continue link for all others
$output .= twentyten_continue_reading_link();
}
return $output;
}
示例3: twentyten_auto_excerpt_more
/**
* Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyten_continue_reading_link().
*
* To override this in a child theme, remove the filter and add your own
* function tied to the excerpt_more filter hook.
*
* @since Twenty Ten 1.0
* @return string An ellipsis
*/
function twentyten_auto_excerpt_more($more)
{
return ' …' . twentyten_continue_reading_link();
}