本文整理汇总了PHP中wp_list_authors函数的典型用法代码示例。如果您正苦于以下问题:PHP wp_list_authors函数的具体用法?PHP wp_list_authors怎么用?PHP wp_list_authors使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wp_list_authors函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: widget
/**
* Outputs the widget based on the arguments input through the widget controls.
*
* @since 0.6.0
*/
function widget($sidebar, $instance)
{
extract($sidebar);
/* Set the $args for wp_list_authors() to the $instance array. */
$args = $instance;
/* Overwrite the $echo argument and set it to false. */
$args['echo'] = false;
/* Output the theme's $before_widget wrapper. */
echo $before_widget;
/* If a title was input by the user, display it. */
if (!empty($instance['title'])) {
echo $before_title . apply_filters('widget_title', $instance['title'], $instance, $this->id_base) . $after_title;
}
/* Get the authors list. */
$authors = str_replace(array("\r", "\n", "\t"), '', wp_list_authors($args));
/* If 'list' is the style and the output should be HTML, wrap the authors in a <ul>. */
if ('list' == $args['style'] && $args['html']) {
$authors = '<ul class="xoxo authors">' . $authors . '</ul><!-- .xoxo .authors -->';
} elseif ('none' == $args['style'] && $args['html']) {
$authors = '<p class="authors">' . $authors . '</p><!-- .authors -->';
}
/* Display the authors list. */
echo $authors;
/* Close the theme's widget wrapper. */
echo $after_widget;
}
开发者ID:RA2WP,项目名称:RA2WP,代码行数:31,代码来源:widget-authors.php
示例2: widget
function widget($args, $instance)
{
extract($args, EXTR_SKIP);
$title = apply_filters('widget_title', empty($instance['title']) ? __('Owners', 'rolopress') : $instance['title']);
$style = $instance['style'];
$feed = $instance['feed'];
$feed_image = $instance['feed_image'];
$optioncount = isset($instance['optioncount']) ? $instance['optioncount'] : false;
$exclude_admin = isset($instance['exclude_admin']) ? $instance['exclude_admin'] : false;
$show_fullname = isset($instance['show_fullname']) ? $instance['show_fullname'] : false;
$hide_empty = isset($instance['hide_empty']) ? $instance['hide_empty'] : false;
$html = isset($instance['html']) ? $instance['html'] : false;
$owners = array('optioncount' => $optioncount, 'exclude_admin' => $exclude_admin, 'show_fullname' => $show_fullname, 'hide_empty' => $hide_empty, 'feed' => $feed, 'feed_image' => $feed_image, 'style' => $style, 'html' => $html, 'echo' => 0);
echo $before_widget;
if ($title) {
echo "\n\t\t\t" . $before_title . $title . $after_title;
}
if ('list' == $style && $html) {
echo "\n\t\t\t" . '<ul class="xoxo owners">';
}
echo "\n\t\t\t\t" . str_replace(array("\r", "\n", "\t"), '', wp_list_authors($owners));
if ('list' == $style && $html) {
echo "\n\t\t\t" . '</ul><!-- .xoxo .owners -->';
}
echo $after_widget;
}
开发者ID:sudar,项目名称:rolopress-core,代码行数:26,代码来源:owners.php
示例3: authors_block
function authors_block($options)
{
$mydirname = empty($options[0]) ? 'xpress' : $options[0];
$this_template = empty($options[1]) ? 'db:' . $mydirname . '_block_authors.html' : trim($options[1]);
$optioncount = empty($options[2]) ? 0 : 1;
$exclude_admin = empty($options[3]) ? 0 : 1;
$show_fullname = empty($options[4]) ? 0 : 1;
$hide_empty = empty($options[5]) ? 0 : 1;
$mydirpath = get_xpress_dir_path();
if (xpress_is_wp_version('<', '2.3')) {
$param_str = 'optioncount=' . $optioncount . '&exclude_admin=' . $exclude_admin . '&show_fullname=' . $show_fullname . '&hide_empty=' . $hide_empty;
ob_start();
wp_list_authors($param_str);
//WP2011 wp_list_authors() used only parse_str()
$list_authors = ob_get_contents();
ob_end_clean();
} else {
$param = array('optioncount' => $optioncount, 'exclude_admin' => $exclude_admin, 'show_fullname' => $show_fullname, 'hide_empty' => $hide_empty, 'feed' => '', 'feed_image' => '', 'echo' => false);
$list_authors = wp_list_authors($param);
}
if (xpress_is_multi_user()) {
$all_link = '<li>' . '<a href="' . get_bloginfo('url') . '" title="' . __('All Authors', 'xpress') . '">' . __('All Authors', 'xpress') . '</a></li>';
} else {
$all_link = '';
}
$output = "<ul>\n" . $all_link . $list_authors . "\n</ul>\n";
$block['authors'] = $output;
return $block;
}
开发者ID:nouphet,项目名称:rata,代码行数:29,代码来源:authors_block_theme.php
示例4: genesis_page_archive_content
/**
* This function outputs sitemap-esque columns displaying all pages,
* categories, authors, monthly archives, and recent posts.
*
* @since 1.6
*/
function genesis_page_archive_content()
{
// Pause Exclude Pages plugin functionality.
pause_exclude_pages();
?>
<h4><?php
_e('Pages:', 'genesis');
?>
</h4>
<ul>
<?php
wp_list_pages('title_li=');
?>
</ul>
<h4><?php
_e('Categories:', 'genesis');
?>
</h4>
<ul>
<?php
wp_list_categories('sort_column=name&title_li=');
?>
</ul>
<h4><?php
_e('Authors:', 'genesis');
?>
</h4>
<ul>
<?php
wp_list_authors('exclude_admin=0&optioncount=1');
?>
</ul>
<h4><?php
_e('Monthly:', 'genesis');
?>
</h4>
<ul>
<?php
wp_get_archives('type=monthly');
?>
</ul>
<h4><?php
_e('Recent Posts:', 'genesis');
?>
</h4>
<ul>
<?php
wp_get_archives('type=postbypost&limit=100');
?>
</ul>
<?php
// Resume Exclude Pages plugin functionality.
resume_exclude_pages();
}
开发者ID:roosalles,项目名称:trestle,代码行数:66,代码来源:page_archive_all_pages.php
示例5: widget_author_info_card
function widget_author_info_card($args)
{
if (get_query_var('author_name')) {
$curauth = get_userdatabylogin(get_query_var('author_name'));
} else {
$curauth = get_userdata(get_query_var('author'));
}
extract($args);
echo $before_widget . $before_title;
// If its the author page.
if (get_option('sa_add_to_author_page') == 'yes' && is_author()) {
$title = $curauth->display_name;
echo $title . $after_title;
echo sa_author_info_card($curauth);
} else {
$title = "List of Authors";
echo $title . $after_title;
ob_start();
wp_list_authors('show_fullname=1&optioncount=1');
$author_list = ob_get_contents();
ob_end_clean();
echo "<ul>{$author_list}</ul>";
}
echo $after_widget;
}
开发者ID:ranveerkunal,项目名称:showauthor,代码行数:25,代码来源:showauthor.php
示例6: Grafik_Functions_Shortcode_BlogAuthors
function Grafik_Functions_Shortcode_BlogAuthors($atts)
{
$a = shortcode_atts(array('orderby' => 'name', 'order' => 'ASC', 'number' => 0, 'optioncount' => 0, 'exclude_admin' => 1, 'show_fullname' => 0, 'hide_empty' => 1, 'heading' => 'Blog Authors', 'class' => '', 'id' => ''), $atts, "BlogAuthors");
$a['echo'] = 0;
$content = '<ul>' . wp_list_authors($a) . '</ul>';
return '<div class="theme-blogauthors' . (empty($a['class']) ? null : ' ' . $a['class']) . '"' . (empty($a['id']) ? null : ' id="' . $a['id'] . '"') . '>' . '<div class="theme-blogauthors-interior">' . (empty($a['heading']) ? null : '<h2>' . $a['heading'] . '</h2>') . (empty($content) ? null : $content) . '</div>' . '</div>';
}
开发者ID:GrafikMatthew,项目名称:Grafik-Engine-Beta,代码行数:7,代码来源:BlogAuthors.php
示例7: widget_sidebar
function widget_sidebar()
{
// eiger Code Start
echo '<li class="widget widget-autorenwidget"><h3 class="widgettitle style-head">Contributing People</h3><hr class="widget-hr" /><ul>';
wp_list_authors('exclude_admin=0&show_fullname=true');
echo '</ul></li>';
// eiger Code Ende
}
开发者ID:ciaranlm,项目名称:uxebu.com,代码行数:8,代码来源:autoren_widget.php
示例8: sub_author_listing
function sub_author_listing()
{
ob_start();
?>
<div class="list-author">
<?php
wp_list_authors('show_fullname=1&optioncount=0&orderby=post_count&order=DESC');
?>
</div>
<?php
$myvariable = ob_get_clean();
return $myvariable;
}
开发者ID:zakirsajib,项目名称:startupbritain,代码行数:13,代码来源:author-list.php
示例9: dt_sitemap_shortcode
function dt_sitemap_shortcode()
{
$output = '<div class="sitemap cf">';
$output .= '<div class="one-half">';
$output .= '<h3>' . __('Pages', 'engine') . '</h3>';
$output .= '<ul>' . wp_list_pages('title_li=&echo=0') . '</ul>';
$output .= '<h3>' . __('Categories', 'engine') . '</h3>';
$output .= '<ul>' . wp_list_categories('title_li=&show_count=1&echo=0') . '</ul>';
$output .= '<h3>' . __('Authors', 'engine') . '</h3>';
$output .= '<ul>' . wp_list_authors('exclude_admin=0&optioncount=1&echo=0') . '</ul>';
$output .= '</div>';
$output .= '<div class="one-half column-last">';
$output .= '<h3>' . __('Monthly Archives', 'engine') . '</h3>';
$output .= '<ul>' . wp_get_archives('type=monthly&show_post_count=1&echo=0') . '</ul>';
$output .= '<h3>' . __('Latest Posts', 'engine') . '</h3>';
$output .= '<ul>' . wp_get_archives('type=postbypost&limit=20&echo=0') . '</ul>';
$output .= '</div>';
$output .= '</div><!-- .sitemap -->';
return $output;
}
开发者ID:jainankit,项目名称:suggstme,代码行数:20,代码来源:theme-shortcodes.php
示例10: widget
/**
* Outputs the widget based on the arguments input through the widget controls.
* @since 0.6
*/
function widget( $args, $instance ) {
/* If a transient has been saved with the widget information, use it. */
$transient = get_transient( "{$this->prefix}_widget_{$args['widget_id']}" );
if ( $transient ) {
echo $transient;
return;
}
extract( $args, EXTR_SKIP );
$args = array();
$args['style'] = $instance['style'];
$args['feed'] = $instance['feed'];
$args['feed_image'] = $instance['feed_image'];
$args['optioncount'] = isset( $instance['optioncount'] ) ? $instance['optioncount'] : false;
$args['exclude_admin'] = isset( $instance['exclude_admin'] ) ? $instance['exclude_admin'] : false;
$args['show_fullname'] = isset( $instance['show_fullname'] ) ? $instance['show_fullname'] : false;
$args['hide_empty'] = isset( $instance['hide_empty'] ) ? $instance['hide_empty'] : false;
$args['html'] = isset( $instance['html'] ) ? $instance['html'] : false;
$args['echo'] = false;
$authors_widget = $before_widget;
if ( $instance['title'] )
$authors_widget .= $before_title . apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base ) . $after_title;
$authors = str_replace( array( "\r", "\n", "\t" ), '', wp_list_authors( $args ) );
if ( 'list' == $args['style'] && $args['html'] )
$authors = '<ul class="xoxo authors">' . $authors . '</ul><!-- .xoxo .authors -->';
$authors_widget .= $authors;
$authors_widget .= $after_widget;
set_transient( "{$this->prefix}_widget_{$widget_id}", $authors_widget, hybrid_get_transient_expiration() );
echo $authors_widget;
}
开发者ID:nerdfiles,项目名称:tbotw.org,代码行数:44,代码来源:widget-authors.php
示例11: widget
/**
* Outputs the widget based on the arguments input through the widget controls.
* @since 0.6.0
*/
function widget($args, $instance)
{
extract($args, EXTR_SKIP);
/* Set up the arguments for wp_list_authors(). */
$args = array('order' => $instance['order'], 'orderby' => $instance['orderby'], 'number' => !empty($instance['number']) ? intval($instance['number']) : '', 'style' => $instance['style'], 'feed' => $instance['feed'], 'feed_image' => $instance['feed_image'], 'optioncount' => !empty($instance['optioncount']) ? true : false, 'exclude_admin' => !empty($instance['exclude_admin']) ? true : false, 'show_fullname' => !empty($instance['show_fullname']) ? true : false, 'hide_empty' => !empty($instance['hide_empty']) ? true : false, 'html' => !empty($instance['html']) ? true : false, 'echo' => false);
/* Output the theme's $before_widget wrapper. */
echo $before_widget;
/* If a title was input by the user, display it. */
if (!empty($instance['title'])) {
echo $before_title . apply_filters('widget_title', $instance['title'], $instance, $this->id_base) . $after_title;
}
/* Get the authors list. */
$authors = str_replace(array("\r", "\n", "\t"), '', wp_list_authors($args));
/* If 'list' is the style and the output should be HTML, wrap the authors in a <ul>. */
if ('list' == $args['style'] && $args['html']) {
$authors = '<ul class="xoxo authors">' . $authors . '</ul><!-- .xoxo .authors -->';
}
/* Display the authors list. */
echo $authors;
/* Close the theme's widget wrapper. */
echo $after_widget;
}
开发者ID:nixter,项目名称:d.school,代码行数:26,代码来源:widget-authors.php
示例12: widget_authors
function widget_authors($args)
{
// $args is an array of strings that help widgets to conform to
// the active theme: before_widget, before_title, after_widget,
// and after_title are the array keys. Default tags: li and h2.
extract($args);
// Each widget can store and retrieve its own options.
// Here we retrieve any options that may have been set by the user
// relying on widget defaults to fill the gaps.
$options = array_merge(widget_authors_options(), get_option('widget_authors'));
unset($options[0]);
//returned by get_option(), but we don't need it
// These lines generate our output. Widgets can be very complex
// but as you can see here, they can also be very, very simple.
echo $before_widget . $before_title . $options['Title'] . $after_title;
// Translate yes/no values
if (count($options)) {
foreach ($options as $k => $v) {
if ($k != 'Title' && $k != 'Style') {
$options[$k] = $v ? 1 : 0;
}
}
}
// Create feed image parameter
$feed_image = $options['Show Feed Image'] ? '&feed_image=' . LISTAUTHORS_URL . 'feed-icon-14x14.png&feed=RSS feed' : '';
?>
<!-- Authors -->
<ul>
<?php
wp_list_authors('optioncount=' . $options['Option Count'] . '&exclude_admin=' . $options['Exclude Administrator'] . '&show_fullname=' . $options['Show Full Name'] . '&hide_empty=' . $options['Hide Empty'] . $feed_image);
?>
</ul>
<!-- /Authors -->
<?
echo $after_widget;
}
开发者ID:JeffLuckett,项目名称:quickref,代码行数:38,代码来源:prebaker.php
示例13: shortcode_list_authors
/**
* Shortcode function for listing the site's authors
* Uses the wp_list_authors() function
* @link http://codex.wordpress.org/Template_Tags/wp_list_authors
*
* @since 0.1
* @param array $attr Attributes attributed to the shortcode.
*/
function shortcode_list_authors($attr)
{
/*
* Make sure we have boolean values instead of strings when needed
*/
if ($attr['optioncount']) {
$attr['optioncount'] = shortcode_string_to_bool($attr['optioncount']);
}
if ($attr['exclude_admin']) {
$attr['exclude_admin'] = shortcode_string_to_bool($attr['exclude_admin']);
}
if ($attr['show_fullname']) {
$attr['show_fullname'] = shortcode_string_to_bool($attr['show_fullname']);
}
if ($attr['hide_empty']) {
$attr['hide_empty'] = shortcode_string_to_bool($attr['hide_empty']);
}
$attr['echo'] = false;
return wp_list_authors($attr);
}
开发者ID:jfitzsimmons,项目名称:soundtrackforspace,代码行数:28,代码来源:template-tag-shortcodes.php
示例14: get_tag_link
echo '<li><a href="' . get_tag_link($tag->term_id) . '">' . $tag->name . '</a></li> ';
}
}
?>
</ul>
</li>
<li class="sitemap_col">
<div class="sitemap_title">
<h2><?php
_e('Authors', 'framework');
?>
</h2>
</div>
<ul>
<?php
wp_list_authors('optioncount=1&exclude_admin=0');
?>
</ul>
</li>
</ul>
</div>
</div>
</div>
<?php
if ($comments) {
?>
<?php
comments_template();
?>
<?php
开发者ID:abdulhadikaryana,项目名称:kebudayaan,代码行数:31,代码来源:page-sitemap.php
示例15: wp_get_archives
wp_get_archives('type=monthly');
?>
</ul>
<h3>Archives by Day:</h3>
<ul><?php
wp_get_archives('type=daily');
?>
</ul>
<h3>Archives by Category:</h3>
<ul><?php
wp_list_categories('title_li=');
?>
</ul>
<h3>Archives by Author:</h3>
<ul><?php
wp_list_authors();
?>
</ul>
</div>
<div class="col">
<h3>All Pages:</h3>
<ul><?php
wp_list_pages('title_li=');
?>
</ul>
<h3>Archives by Tag:</h3>
<?php
wp_tag_cloud();
?>
</div>
</section>
开发者ID:candidosales,项目名称:site-demolaypi,代码行数:31,代码来源:archives.php
示例16: post_class
<div id="content" class="<?php
echo $current_type;
?>
" role="main">
<div <?php
if (function_exists('post_class')) {
post_class();
}
?>
id="post-<?php
the_ID();
?>
">
<div class="entry" role="article">
<ul>
<?php
wp_list_authors('exclude_admin=0');
?>
</ul>
</div>
</div>
</div>
<?php
get_footer();
?>
开发者ID:angelmoratilla,项目名称:digressit,代码行数:27,代码来源:authors.php
示例17: calibrefx_404
/**
* Default template for 404 page
*/
function calibrefx_404()
{
?>
<div class="post hentry">
<h1 class="entry-title"><?php
_e('Not Found, Error 404', 'calibrefx');
?>
</h1>
<div class="entry-content">
<p>
The page you are looking for no longer exists. Perhaps you can return back to the site's <a href="<?php
bloginfo('home_url');
?>
">homepage</a> and see if you can find what you are looking for. Or, you can try finding it with the information below.
</p>
<div>
<div class="archive-page">
<h4><?php
_e('Categories:', 'calibrefx');
?>
</h4>
<ul>
<?php
wp_list_categories('sort_column=name&title_li=');
?>
</ul>
</div><!-- end .archive-page-->
<div class="archive-page">
<h4><?php
_e('Authors:', 'calibrefx');
?>
</h4>
<ul>
<?php
wp_list_authors('exclude_admin=0&optioncount=1');
?>
</ul>
<h4><?php
_e('Monthly:', 'calibrefx');
?>
</h4>
<ul>
<?php
wp_get_archives('type=monthly');
?>
</ul>
<h4><?php
_e('Recent Posts:', 'calibrefx');
?>
</h4>
<ul>
<?php
wp_get_archives('type=postbypost&limit=100');
?>
</ul>
</div><!-- end .archive-page-->
<div class="clearfix"></div>
</div>
</div><!-- end .entry-content -->
</div><!-- end .postclass -->
<?php
}
开发者ID:alispx,项目名称:calibrefx,代码行数:79,代码来源:404.php
示例18: wpseo_sitemap_shortcode
function wpseo_sitemap_shortcode()
{
// ==============================================================================
// General Variables
$options = get_option('wpseosms');
$checkOptions = get_option('wpseo_xml');
$goHtm = '';
//Hard Coded Styles
if ($options['css-disable'] == '') {
echo '<link rel="stylesheet" type="text/css" href="' . plugin_dir_url(__FILE__) . 'style.css" media="screen" />';
}
$goHtm .= '<!-- WP SEO HTML Sitemap Plugin Start --><div id="wpseo_sitemap" class="columns_' . $options['columns'] . '">';
// ==============================================================================
// Authors
if ($checkOptions['disable_author_sitemap'] !== true) {
$goHtm .= '<div id="sitemap_authors"><h3>' . __('Authors') . '</h3>
<ul>';
$authEx = implode(", ", get_users('orderby=nicename&meta_key=wpseo_excludeauthorsitemap&meta_value=on'));
$goHtm .= wp_list_authors(array('exclude_admin' => false, 'exclude' => $authEx, 'echo' => false));
$goHtm .= '</ul></div>';
}
// ==============================================================================
// Pages
$pageCheck = get_pages(array('exclude' => $options['pageID']));
if (!empty($pageCheck) && $checkOptions['post_types-page-not_in_sitemap'] !== true) {
$pageTitle = get_post_type_object('page');
$pageTitle = $pageTitle->label;
$goHtm .= '<div id="sitemap_pages"><h3>' . $pageTitle . '</h3>
<ul>';
$pageInc = '';
$getPages = get_all_page_ids();
foreach ($getPages as $pageID) {
if ($pageID !== $options['pageID']) {
if (get_post_meta($pageID, '_yoast_wpseo_meta-robots-noindex', true) === '1' && get_post_meta($pageID, '_yoast_wpseo_sitemap-include', true) !== 'always' || get_post_meta($pageID, '_yoast_wpseo_sitemap-include', true) === 'never' || get_post_meta($pageID, '_yoast_wpseo_redirect', true) !== '') {
continue;
}
if ($pageInc == '') {
$pageInc = $pageID;
continue;
}
$pageInc .= ', ' . $pageID;
}
}
$goHtm .= wp_list_pages(array('include' => $pageInc, 'title_li' => '', 'sort_column' => 'post_title', 'sort_order' => 'ASC', 'echo' => false));
$goHtm .= '</ul></div>';
}
// ==============================================================================
// Posts
$postsTest = get_posts();
if (!empty($postsTest) && $checkOptions['post_types-post-not_in_sitemap'] !== true) {
$postTitle = get_post_type_object('post');
$postTitle = $postTitle->label;
if (get_option('show_on_front') == 'page') {
$postsURL = get_permalink(get_option('page_for_posts'));
$postTitle = get_the_title(get_option('page_for_posts'));
} else {
$postsURL = get_bloginfo('url');
}
$goHtm .= '<div id="sitemap_posts"><h3>';
if ($postsURL !== '' && $postsURL !== get_permalink($options['pageID'])) {
$goHtm .= '<a href="' . $postsURL . '">' . $postTitle . '</a>';
} else {
$goHtm .= $postTitle;
}
$goHtm .= '</h3><ul>';
//Categories
$cateEx = '';
$getCate = get_option('wpseo_taxonomy_meta');
if (!empty($getCate['category'])) {
foreach ($getCate['category'] as $cateID => $item) {
if ($item['wpseo_noindex'] == 'noindex' || $item['wpseo_sitemap_include'] == 'never') {
if ($cateEx == '') {
$cateEx = $cateID;
} else {
$cateEx .= ', ' . $cateID;
}
}
}
}
$cats = get_categories('exclude=' . $cateEx);
foreach ($cats as $cat) {
$goHtm .= "<li style='margin-top:10px;'><h4><a href='" . esc_url(get_term_link($cat)) . "'>" . $cat->cat_name . "</a></h4>";
$goHtm .= "<ul>";
query_posts('posts_per_page=-1&cat=' . $cat->cat_ID);
while (have_posts()) {
the_post();
if (get_post_meta(get_the_ID(), '_yoast_wpseo_meta-robots-noindex', true) === '1' && get_post_meta(get_the_ID(), '_yoast_wpseo_sitemap-include', true) !== 'always' || get_post_meta(get_the_ID(), '_yoast_wpseo_sitemap-include', true) === 'never' || get_post_meta(get_the_ID(), '_yoast_wpseo_redirect', true) !== '') {
continue;
}
$category = get_the_category();
// Only display a post link once, even if it's in multiple categories
if ($category[0]->cat_ID == $cat->cat_ID) {
$goHtm .= '<li><a href="' . get_permalink() . '">' . get_the_title() . '</a></li>';
}
}
wp_reset_query();
$goHtm .= "</ul>";
$goHtm .= "</li>";
}
$goHtm .= '</ul></div>';
//.........这里部分代码省略.........
开发者ID:jonjitsu,项目名称:wp-seo-html-sitemap,代码行数:101,代码来源:sitemap.php
示例19: list_authors
function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '')
{
$args = compact('optioncount', 'exclude_admin', 'show_fullname', 'hide_empty', 'feed', 'feed_image');
return wp_list_authors($args);
}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:5,代码来源:deprecated.php
示例20: dynamic_sidebar
</p>
</div>
<?php
}
?>
</div> <!-- end author heading -->
<div class="w-row">
<div class="w-col w-col-2 blog-left-column">
<?php
dynamic_sidebar("sidebar-left");
?>
<div class="authors-list">
<h3 class="h3-green-header">Post by Author</h3>
<?php
wp_list_authors($args);
?>
</div>
</div>
<div class="w-col w-col-7">
<?php
if (have_posts()) {
while (have_posts()) {
the_post();
?>
<div class="featured-image-blog-container"><?php
if (has_post_thumbnail()) {
?>
<a href="<?php
开发者ID:Jaballadares,项目名称:talix-website,代码行数:31,代码来源:archive.php
注:本文中的wp_list_authors函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论