本文整理汇总了PHP中wp_related_posts函数的典型用法代码示例。如果您正苦于以下问题:PHP wp_related_posts函数的具体用法?PHP wp_related_posts怎么用?PHP wp_related_posts使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wp_related_posts函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: get_template_part
<?php
get_template_part('content', 'single');
?>
<p style="text-align:justify; color:#999; font-weight:bold;">
Disclaimer: All the opinions expressed in this article are those
of the individual authors only. The Fifth Estate does not endorse
any of the views mentioned in the article. The views are not to be
construed in any manner as the official views of IIT Madras.
</p>
<p style="text-align:justify; color:#999; font-weight:bold;">
Content copyright: The Fifth Estate, IIT-M's Student Media Body.
For permissions to reuse part or whole of the content,
email us at <a href="mailto:[email protected]">[email protected]</a>
</p>
<?php
wp_related_posts();
?>
<?php
zerif_post_nav();
?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if (comments_open() || '0' != get_comments_number()) {
comments_template('');
}
}
// end of the loop.
?>
</main><!-- #main -->
</div><!-- #primary -->
开发者ID:abhiShandy,项目名称:t5e,代码行数:31,代码来源:single-op-eds.php
示例2: hybrid_related_posts
/**
* Shows related posts by plugin
* Only show if plugin is active
*
* @since 0.2.2
*
* @plugin - http://wasabi.pbwiki.com/Related%20Entries
* @plugin - http://rmarsh.com/plugins/similar-posts
* @plugin - http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin
***********************************************************/
function hybrid_related_posts()
{
if (function_exists('related_posts') || function_exists('similar_posts') || function_exists('wp_related_posts')) {
echo '<div class="related-posts">';
echo '<h3>' . __('Related Posts', 'options') . '</h3>';
if (function_exists('related_posts')) {
echo '<ul class="related">';
related_posts();
echo '</ul>';
} elseif (function_exists('similar_posts')) {
similar_posts();
} elseif (function_exists('wp_related_posts')) {
wp_related_posts();
}
echo '</div>';
}
}
开发者ID:alicam,项目名称:vanilla-theme,代码行数:27,代码来源:template-functions.php
示例3: wp23_related_posts
function wp23_related_posts() {
wp_related_posts();
}
开发者ID:ramo01,项目名称:1kapp,代码行数:3,代码来源:utils.php
示例4: wp_related_posts
?>
</div>
<!-- /post -->
<!-- google_ad_section_end -->
<!-- post-meta -->
<div class="post-meta">
<?php
if (get_option('wicketpixie_plugin_related-posts') == 'true' && function_exists(wp_related_posts)) {
?>
<!-- related-posts -->
<div id="related-posts">
<h3>You might also be interested in...</h3>
<?php
wp_related_posts(5);
?>
</div>
<!-- /related-posts -->
<?php
}
?>
<!-- post-meta-right -->
<div class="post-meta-right">
<!-- post-meta-tags -->
<div class="post-meta-tags">
<h6>Tags</h6>
<?php
开发者ID:EddieRingle,项目名称:wicketpixie,代码行数:31,代码来源:home.php
注:本文中的wp_related_posts函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论