Description
Displays a link to the comments popup window if comments_popup_script() is used, otherwise it displays a normal link to comments. This tag must be within The Loop or a comment loop.
Usage
<?php comments_popup_link( $zero, $one, $more, $css_class, $none ); ?>
Parameters
Examples
Text Response for Number of Comments
Displays the comments popup link, using "No comments yet" for no comments, "1 comment" for one, "% comments" for more than one (% replaced by # of comments), and "Comments are off for this post" if commenting is disabled. Additionally, 'comments-link' is a custom CSS class for the link.
<p> <?php comments_popup_link( 'No comments yet', '1 comment', '% comments', 'comments-link', 'Comments are off for this post'); ?> </p>
Hide Comment Link When Comments Are Deactivated
Hides the paragraph element <p></p> that contains the comments_popup_link when comments are deactivated in the Write>Post screen. Good for those who want enable/disable comments post by post. Must be used in the loop.
<?php if ( comments_open() ) : echo '<p>'; comments_popup_link( 'No comments yet', '1 comment', '% comments', 'comments-link', 'Comments are off for this post'); echo '</p>'; endif; ?>
Source File
comments_popup_link() is located in wp-includes/comment-template.php
.
source: http://codex.wordpress.org/Function_Reference/comments_popup_link
相关推荐
Live Edit Function Tracker for Linux Android Source Code.
程序功能: 在树形控件、表格控件等中添加各种类型的控件,包括枚举形、颜色控件、字符串控件、数值控件、按钮等,在其中的整型簇上点击,还可以在鼠标旁边出现一个修改值的小型对话框。
Free Website Pop-up for Login Template
LABVIEW+表格中可输入颜色框_下拉框_选择框
The Program Auto Close window or popup in windows you are enter the caption of window or popup and click start if show window the program auto close windows
Flutter_beautiful_popup,美化你的应用弹出窗口,博客附件,效果请查看博客相对应项目。
jquery-1.3.2 jquery-1.3.2.min popup_layer。三个,可以使用PopupLayer
import { addFilter } from '@wordpress/hooks'addFilter ( 'wp-gutenberg-button-popup.popupTemplate' , 'theme/popup-template' , ( ) => { return [ [ 'core/columns' , { align : 'full' } , [ [ 'core/column...
主流的JQuery popup包集合。里面有详细的资料以及源代码...
创作日期弹出窗口介绍Date Popup Authored 为节点提交表单上的“Authored on”日期字段提供了一个 jQuery UI 日期选择器。 有关该模块的完整说明,请访问 Drupal.org 上的。 要提交错误报告和功能建议,或跟踪更改,...
C#自定义控件--Popup窗口提醒完整源码__0525.rar
C#自定义控件--Popup窗口提醒完整源码__0525).rar
使用EasyPopupChild定义您的自定义弹出窗口小部件,并实现dismiss函数,该函数可以完成在关闭时需要完成的工作,例如。 显示关闭动画。 class CustomWidget extends StatefulWidget with EasyPopup
flutter_show_more_text_popup Flutter小部件以在弹出或覆盖容器中显示文本安装将此添加到包的pubspec.yaml文件中 dependencies : ... show_more_text_popup : ^latest-version用法首先导入show_more_text_popup....
C#自定义控件--Popup窗口提醒完整源码_89.rarC#自定义控件--Popup窗口提醒完整源码_89.rar
otherwise, pop-up windows are the same as overlapped windows of the WS_OVERLAPPE
Mac开发之Cocoa NSTableView中使用CheckBox,Popup,Image
UPDATE_POPUP_VERSION=1.0.0 # Support more. e.g.: 1.0.0.1, 1.0.0.1.1 您还可以使用options.auto来实现自动更新版本。 项目配置文件 // nuxt.config.js const config = { modules : [ '@femessage/update-popup...
WPF 是最新的软件开工具,真正实现界面设计与代码设计的分离
C#自定义控件--Popup窗口提醒完整源码__(0521).rar