• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_the_author_url函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_the_author_url函数的典型用法代码示例。如果您正苦于以下问题:PHP get_the_author_url函数的具体用法?PHP get_the_author_url怎么用?PHP get_the_author_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_the_author_url函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: the_author_link

function the_author_link() {
	if (get_the_author_url()) {
		echo '<a href="' . get_the_author_url() . '" title="' . sprintf(__("Visit %s's website"), get_the_author()) . '" rel="external">' . get_the_author() . '</a>';
	} else {
		the_author();
	}
}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:7,代码来源:author-template.php


示例2: bloginfo

    bloginfo('url');
    ?>
">&nbsp;<?php 
    bloginfo('name');
    ?>
</a></span><span class="spacer2">&nbsp;<?php 
    the_title();
    ?>
</span>
</div>	
			
     <ul class="single_post_meta">
		<li> 
        <li><strong>Autor:</strong>
		<?php 
    if (get_the_author_url()) {
        ?>
		
      <?php 
        the_author_posts_link();
        ?>
      
      <?php 
    } else {
        the_author_posts_link();
    }
    ?>
</li>
		<li><strong>Data publikacji:</strong> <?php 
    echo get_the_date();
    ?>
开发者ID:roborovski,项目名称:sg-mik,代码行数:31,代码来源:sidebar.php


示例3: the_title

        the_title();
        ?>
"><?php 
        the_title();
        ?>
</a></h2>
<p class="post-info">
	<img src='<?php 
        author_image_path(get_the_author_ID());
        ?>
' width='16px' height='16px'>
	<?php 
        the_time('l j \\d\\e F \\d\\e Y');
        ?>
 por <a href="<?php 
        echo get_the_author_url();
        ?>
"><?php 
        the_author_firstname();
        ?>
 <?php 
        the_author_lastname();
        ?>
</a>
</p>

<?php 
        the_content('Leer más &raquo;');
        ?>

开发者ID:alx,项目名称:blogsfera,代码行数:29,代码来源:index.php


示例4: do_action

	<?php 
do_action('atom_head');
?>
	<?php 
while (have_posts()) {
    the_post();
    ?>
	<entry>
		<author>
			<name><?php 
    the_author();
    ?>
</name>
			<?php 
    $author_url = get_the_author_url();
    if (!empty($author_url)) {
        ?>
			<uri><?php 
        the_author_url();
        ?>
</uri>
			<?php 
    }
    ?>
		</author>
		<title type="<?php 
    html_type_rss();
    ?>
"><![CDATA[<?php 
    the_title_rss();
开发者ID:schr,项目名称:wordpress,代码行数:30,代码来源:feed-atom.php


示例5: echo_entry

    function echo_entry()
    {
        ?>
<entry xmlns="<?php 
        echo $this->ATOM_NS;
        ?>
"
       xmlns:app="<?php 
        echo $this->ATOMPUB_NS;
        ?>
" xml:lang="<?php 
        echo get_option('rss_language');
        ?>
">
	<id><?php 
        the_guid($GLOBALS['post']->ID);
        ?>
</id>
<?php 
        list($content_type, $content) = prep_atom_text_construct(get_the_title());
        ?>
	<title type="<?php 
        echo $content_type;
        ?>
"><?php 
        echo $content;
        ?>
</title>
	<updated><?php 
        echo get_post_modified_time('Y-m-d\\TH:i:s\\Z', true);
        ?>
</updated>
	<published><?php 
        echo get_post_time('Y-m-d\\TH:i:s\\Z', true);
        ?>
</published>
	<app:edited><?php 
        echo get_post_modified_time('Y-m-d\\TH:i:s\\Z', true);
        ?>
</app:edited>
	<app:control>
		<app:draft><?php 
        echo $GLOBALS['post']->post_status == 'draft' ? 'yes' : 'no';
        ?>
</app:draft>
	</app:control>
	<author>
		<name><?php 
        the_author();
        ?>
</name>
<?php 
        if (get_the_author_url() && get_the_author_url() != 'http://') {
            ?>
		<uri><?php 
            the_author_url();
            ?>
</uri>
<?php 
        }
        ?>
	</author>
<?php 
        if ($GLOBALS['post']->post_type == 'attachment') {
            ?>
	<link rel="edit-media" href="<?php 
            $this->the_media_url();
            ?>
" />
	<content type="<?php 
            echo $GLOBALS['post']->post_mime_type;
            ?>
" src="<?php 
            the_guid();
            ?>
"/>
<?php 
        } else {
            ?>
	<link href="<?php 
            the_permalink_rss();
            ?>
" />
<?php 
            if (strlen($GLOBALS['post']->post_content)) {
                list($content_type, $content) = prep_atom_text_construct(get_the_content());
                ?>
	<content type="<?php 
                echo $content_type;
                ?>
"><?php 
                echo $content;
                ?>
</content>
<?php 
            }
        }
        ?>
	<link rel="edit" href="<?php 
        $this->the_entry_url();
//.........这里部分代码省略.........
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:101,代码来源:wp-app.php


示例6: get_feed

	function get_feed($page = 1, $post_type = 'post') {
		global $post, $wp, $wp_query, $posts, $wpdb, $blog_id, $post_cache;
		log_app('function',"get_feed($page, '$post_type')");
		ob_start();

		if(!isset($page)) {
			$page = 1;
		}
		$page = (int) $page;

		$count = get_option('posts_per_rss');
		$query = "paged=$page&posts_per_page=$count&order=DESC";
		if($post_type == 'attachment') {
			$query .= "&post_type=$post_type";
		}
		query_posts($query);
		$post = $GLOBALS['post'];
		$posts = $GLOBALS['posts'];
		$wp = $GLOBALS['wp'];
		$wp_query = $GLOBALS['wp_query'];
		$wpdb = $GLOBALS['wpdb'];
		$blog_id = (int) $GLOBALS['blog_id'];
		$post_cache = $GLOBALS['post_cache'];


		$total_count = $this->get_posts_count();
		$last_page = (int) ceil($total_count / $count);
		$next_page = (($page + 1) > $last_page) ? NULL : $page + 1;
		$prev_page = ($page - 1) < 1 ? NULL : $page - 1; 
		$last_page = ((int)$last_page == 1 || (int)$last_page == 0) ? NULL : (int) $last_page;
?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://purl.org/atom/app#" xml:lang="<?php echo get_option('rss_language'); ?>">
<id><?php $this->the_entries_url() ?></id>
<updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT')); ?></updated>
<title type="text"><?php bloginfo_rss('name') ?></title>
<subtitle type="text"><?php bloginfo_rss("description") ?></subtitle>
<link rel="first" type="application/atom+xml" href="<?php $this->the_entries_url() ?>" />
<?php if(isset($prev_page)): ?>
<link rel="previous" type="application/atom+xml" href="<?php $this->the_entries_url($prev_page) ?>" />
<?php endif; ?>
<?php if(isset($next_page)): ?>
<link rel="next" type="application/atom+xml" href="<?php $this->the_entries_url($next_page) ?>" />
<?php endif; ?>
<link rel="last" type="application/atom+xml" href="<?php $this->the_entries_url($last_page) ?>" />
<link rel="self" type="application/atom+xml" href="<?php $this->the_entries_url() ?>" />
<rights type="text">Copyright <?php echo mysql2date('Y', get_lastpostdate('blog')); ?></rights>
<generator uri="http://wordpress.com/" version="1.0.5-dc">WordPress.com Atom API</generator>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); 
$post = $GLOBALS['post'];
?>
<entry>
		<id><?php the_guid($post->ID); ?></id>
		<title type="html"><![CDATA[<?php the_title() ?>]]></title>
		<updated><?php echo get_post_modified_time('Y-m-d\TH:i:s\Z', true); ?></updated>
		<published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published>
		<app:control>
			<app:draft><?php echo ($GLOBALS['post']->post_status == 'draft' ? 'yes' : 'no') ?></app:draft>
		</app:control>
		<author>
			<name><?php the_author()?></name>
			<email><?php the_author_email()?></email>
	<?php if (get_the_author_url() && get_the_author_url() != 'http://') { ?>
		 <uri><?php the_author_url()?></uri>
	<?php } ?>
		</author>
	<?php if($GLOBALS['post']->post_status == 'attachment') { ?>
		<link rel="edit" href="<?php $this->the_entry_url() ?>" />
		<link rel="edit-media" href="<?php $this->the_media_url() ?>" />
	<?php } else { ?>
		<link href="<?php permalink_single_rss() ?>" />
		<link rel="edit" href="<?php $this->the_entry_url() ?>" />
	<?php } ?>
	<?php foreach(get_the_category() as $category) { ?>
	 <category scheme="<?php bloginfo_rss('home') ?>" term="<?php echo $category->cat_name?>" />
	<?php } ?>   <summary type="html"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
	<?php if ( strlen( $GLOBALS['post']->post_content ) ) : ?>
	<content type="html"><![CDATA[<?php echo get_the_content('', 0, '') ?>]]></content>
<?php endif; ?>
	</entry>
<?php
	endwhile; 
	endif;
?></feed>
<?php 
		$feed = ob_get_contents();
		ob_end_clean();
		return $feed;
	}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:87,代码来源:wp-app.php


示例7: the_author_url

function the_author_url() {
	echo get_the_author_url();
}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:3,代码来源:template-functions-author.php


示例8: author_info

    function author_info()
    {
        ?>
		<div class="info">
			<a title="<?php 
        _e('Subscribe to this!', 'guangzhou');
        ?>
" href="<?php 
        echo $this->archive_feed();
        ?>
"><img src="<?php 
        bloginfo('template_url');
        ?>
/image/feed.png" width="16" height="16" alt="RSS"/></a>
		</div>
		
		<h2><?php 
        _e('Author Information', 'guangzhou');
        ?>
</h2>
		
		<?php 
        if ($this->archive_total() > 0) {
            ?>
			<p><?php 
            printf(__('The author has written <strong>%s entries</strong>.', 'guangzhou'), $this->archive_total());
            ?>
</p>
		<?php 
        }
        ?>
		
		<dl>
			<dt><?php 
        _e('Name', 'guangzhou');
        ?>
</dt>
			<dd>
				<?php 
        the_author();
        ?>
				<?php 
        if (get_the_author_url()) {
            ?>
					<?php 
            printf(__('(visit <a href="%s">website</a>', 'guangzhou'), get_the_author_url());
            ?>
				<?php 
        }
        ?>
			</dd>
			
			
			<?php 
        if (get_the_author_description()) {
            ?>
			<dt><?php 
            _e('Description', 'guangzhou');
            ?>
</dt>
			<dd><?php 
            the_author_description();
            ?>
</dd>
			<?php 
        }
        ?>
			
			<?php 
        do_action('author_page_info');
        ?>
		</dl>
		
		<?php 
    }
开发者ID:billerby,项目名称:Surdeg,代码行数:75,代码来源:page_info.php


示例9: author_microid

function author_microid()
{
    $hash = get_microid_hash(get_the_author_email(), get_the_author_url());
    echo 'microid-' . $hash;
}
开发者ID:Creativebq,项目名称:wp-istalker,代码行数:5,代码来源:formatting.php


示例10: the_time

        ?>
</a></h1>
                <div class="post-datetime"><abbr class="published" title="<?php 
        the_time('Y-m-d\\TH:i:sO');
        ?>
"><?php 
        the_time('l, j F Y, G:i');
        ?>
</abbr></div>
                <div class="post-author author vcard">
                    <?php 
        printf(__('By %s'), '');
        ?>
 
                    <?php 
        if (get_the_author_url() != '') {
            ?>
                            <a class="fn" href="<?php 
            echo get_author_link(false, $authordata->ID, $authordata->user_nicename);
            ?>
" title="<?php 
            echo __('View posts') . ' ' . __('by') . ' ' . $authordata->display_name;
            ?>
"><?php 
            echo get_the_author();
            ?>
</a> <span class="post-author-web">(<a class="fn url" href="<?php 
            the_author_url();
            ?>
" title="<?php 
            echo __('Visit author homepage');
开发者ID:jesucarr,项目名称:startpoint,代码行数:31,代码来源:archive.php


示例11: get_the_author_meta

}
?>
                        <?php 
if (get_the_author_meta('instagram') != '') {
    ?>
<div><a href="<?php 
    echo get_the_author_meta('instagram');
    ?>
" target="_blank"> Instagram</a></div><?php 
}
?>
                        <?php 
if (get_the_author_url('website') != '') {
    ?>
<div><a href="<?php 
    echo get_the_author_url('website');
    ?>
" target="_blank"> Website</a></div><?php 
}
?>
                    </div>   
                </div>
            </div>    
        </div>    
    </header>
</section>        

<section class="posts">
    <div class="container">
        <div class="row lr">
            <!--start: Tab Menu -->
开发者ID:GalauSehat,项目名称:GalauSehat-themes,代码行数:31,代码来源:content-author.php


示例12: bloginfo_rss

	<title type="text"><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
	<subtitle type="text"><?php bloginfo_rss("description") ?></subtitle>

	<updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT')); ?></updated>
	<?php the_generator( 'atom' ); ?>

	<link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" />
	<id><?php bloginfo('atom_url'); ?></id>
	<link rel="self" type="application/atom+xml" href="<?php self_link(); ?>" />

	<?php do_action('atom_head'); ?>
	<?php while (have_posts()) : the_post(); ?>
	<entry>
		<author>
			<name><?php the_author() ?></name>
			<?php $author_url = get_the_author_url(); if ( !empty($author_url) ) : ?>
			<uri><?php the_author_url()?></uri>
			<?php endif; ?>
		</author>
		<title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title>
		<link rel="alternate" type="text/html" href="<?php the_permalink_rss() ?>" />
		<id><?php the_guid(); ?></id>
		<updated><?php echo get_post_modified_time('Y-m-d\TH:i:s\Z', true); ?></updated>
		<published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published>
		<?php the_category_rss('atom') ?>
		<summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
<?php if ( !get_option('rss_use_excerpt') ) : ?>
		<content type="<?php html_type_rss(); ?>" xml:base="<?php the_permalink_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>
<?php endif; ?>
<?php atom_enclosure(); ?>
<?php do_action('atom_entry'); ?>
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:feed-atom.php


示例13: the_time

        ?>
</h1>
			<div class="post-datetime"><abbr class="published" title="<?php 
        the_time('Y-m-d\\TH:i:sO');
        ?>
"><?php 
        the_time('l, j F Y, G:i');
        ?>
</abbr></div>
            <div class="post-author author vcard">
                <?php 
        printf(__('By %s'), '');
        ?>
 
                <?php 
        if (get_the_author_url() != 'http://') {
            ?>
                        <a class="fn url" href="<?php 
            the_author_url();
            ?>
" title="<?php 
            echo __('Visit author homepage');
            ?>
"><?php 
            echo get_the_author();
            ?>
</a> 
                    <?php 
        } else {
            ?>
                        <span class="fn"><?php 
开发者ID:jesucarr,项目名称:startpoint,代码行数:31,代码来源:attachment.php



注:本文中的get_the_author_url函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_the_category函数代码示例发布时间:2022-05-15
下一篇:
PHP get_the_author_posts函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap