本文整理汇总了PHP中hybrid_post_terms函数的典型用法代码示例。如果您正苦于以下问题:PHP hybrid_post_terms函数的具体用法?PHP hybrid_post_terms怎么用?PHP hybrid_post_terms使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了hybrid_post_terms函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: hybrid_attr
<div <?php
hybrid_attr('entry-content');
?>
>
<?php
the_content();
?>
<?php
wp_link_pages();
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<p class="entry-meta">
<?php
hybrid_post_terms(array('taxonomy' => 'category'));
?>
<?php
hybrid_post_terms(array('taxonomy' => 'post_tag'));
?>
</p>
</footer><!-- .entry-footer -->
<?php
tha_entry_bottom();
?>
</article><!-- .entry -->
<?php
tha_entry_after();
开发者ID:stedy67,项目名称:Compass,代码行数:31,代码来源:link.php
示例2: hybrid_attr
</div><!-- .entry-byline -->
</header><!-- .entry-header -->
<div <?php
hybrid_attr('entry-summary');
?>
>
<?php
the_excerpt();
?>
<?php
wp_link_pages();
?>
</div><!-- .entry-summary -->
<footer class="entry-footer">
<?php
hybrid_post_terms(array('taxonomy' => 'category', 'text' => __('Posted in %s', 'socially-awkward')));
?>
<?php
hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => __('Tagged %s', 'socially-awkward'), 'before' => '<br />'));
?>
</footer><!-- .entry-footer -->
<?php
}
// End single post check.
?>
</article><!-- .entry -->
开发者ID:AngryPerm,项目名称:socially-awkward,代码行数:31,代码来源:content.php
示例3: hybrid_attr
</header><!-- .entry-header -->
<div <?php
hybrid_attr('entry-summary');
?>
>
<?php
get_the_image();
?>
<?php
the_excerpt();
?>
</div><!-- .entry-summary -->
<footer class="entry-footer">
<?php
hybrid_post_terms(array('taxonomy' => 'category', 'text' => esc_html__('Posted in %s', 'magik')));
?>
<?php
hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => esc_html__('Tagged %s', 'magik')));
?>
</footer><!-- .entry-footer -->
<?php
}
// End single post check.
?>
</article><!-- .entry -->
开发者ID:MagikPress,项目名称:magik,代码行数:29,代码来源:content.php
示例4: hybrid_attr
</span>
<time <?php
hybrid_attr('entry-published');
?>
><?php
echo get_the_date();
?>
</time>
<?php
edit_post_link();
?>
<?php
hybrid_post_terms(array('taxonomy' => 'category', 'text' => esc_html__('Posted in %s', '<%= themeSlug %>'), 'before' => '<br />'));
?>
<?php
hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => esc_html__('Tagged %s', '<%= themeSlug %>'), 'before' => '<br />'));
?>
</footer><!-- .entry-footer -->
<?php
} else {
// If not viewing a single post.
?>
<?php
if (get_option('show_avatars')) {
// If avatars are enabled.
?>
<header class="entry-header">
<a href="<?php
开发者ID:brettsmason,项目名称:slush-hybrid-base,代码行数:31,代码来源:status.php
示例5: child_theme_do_meta_tags
function child_theme_do_meta_tags()
{
if (get_theme_mod('disable_tags_meta', 0)) {
return;
}
hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => __('Tagged %s', 'author'), 'before' => ''));
}
开发者ID:hybopressthemes,项目名称:basic-author,代码行数:7,代码来源:functions.php
示例6: hybrid_attr
</span>
<time <?php
hybrid_attr('entry-published');
?>
><?php
echo get_the_date();
?>
</time>
<?php
edit_post_link();
?>
<?php
hybrid_post_terms(array('taxonomy' => 'category', 'text' => __('Posted in %s', 'infusion')));
?>
<?php
hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => __('Tagged %s', 'infusion'), 'before' => '<br />'));
?>
</footer>
<?php
} else {
// If not viewing a single post.
?>
<?php
if (get_option('show_avatars')) {
// If avatars are enabled.
?>
<header class="entry-header">
<a href="<?php
开发者ID:emkal,项目名称:Infusion,代码行数:31,代码来源:status.php
示例7: child_theme_do_author_post_meta_share
function child_theme_do_author_post_meta_share()
{
if (!hybopress_show_post_meta_list()) {
return;
}
?>
<ul class="post-meta-list col-sm-3 clearfix">
<?php
if (hybopress_show_author_box()) {
printf('<li>');
printf('<div class="%s">', 'meta-title');
echo __('Author', 'neat');
echo '</div>';
printf('<span class="%s">', 'vcard author post-author');
printf('<span class="%s">', 'fn');
printf('<a class="%1$s" rel="%2$s" href="%3$s" title="%4$s">', 'author-posts-url text-capitalize', 'author', trailingslashit(get_author_posts_url(get_the_author_meta('ID'))), __('Posts by', 'neat') . ' ' . get_the_author());
echo get_the_author();
echo '</a>';
echo '</span>';
echo '</span>';
echo '</li>';
}
if (1 !== get_theme_mod('disable_categories_meta') && is_single()) {
printf('<li>');
$category_title = sprintf('<div class="%s">', 'meta-title');
$category_title .= __('Category', 'neat');
$category_title .= '</div>';
hybrid_post_terms(array('taxonomy' => 'category', 'text' => $category_title . ' %s', 'sep' => _x('<br />', 'taxonomy terms separator', 'neat')));
echo '</li>';
}
if (1 !== get_theme_mod('disable_tags_meta') && is_single()) {
printf('<li>');
$tag_title = sprintf('<div class="%s">', 'meta-title');
$tag_title .= __('Tags', 'neat');
$tag_title .= '</div>';
hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => $tag_title . ' %s', 'sep' => _x('<br />', 'taxonomy terms separator', 'neat')));
echo '</li>';
}
if (1 === get_theme_mod('enable_social_share_icons') && is_single()) {
printf('<li class="%s">', 'share');
printf('<div class="%s">', 'meta-title');
echo __('Share', 'neat');
echo '</div>';
echo do_shortcode('[hybopress_social_icons icons_type="share" area="social_share" /]');
echo '</li>';
}
?>
</ul>
<?php
}
开发者ID:hybopressthemes,项目名称:basic-neat,代码行数:50,代码来源:functions.php
示例8: hybrid_attr
// If viewing a single post.
?>
<header class="entry-header">
<h1 <?php
hybrid_attr('entry-title');
?>
><?php
single_post_title();
?>
</h1>
<div class="entry-byline">
<?php
hybrid_post_terms(array('taxonomy' => 'portfolio', 'text' => __('Portfolio: %s', 'socially-awkward')));
?>
</div><!-- .entry-byline -->
</header><!-- .entry-header -->
<div <?php
hybrid_attr('entry-content');
?>
>
<?php
the_content();
?>
<?php
wp_link_pages();
?>
开发者ID:Jessphung,项目名称:Phungtastic,代码行数:31,代码来源:portfolio_item.php
示例9: hybrid_attr
</span>
<time <?php
hybrid_attr('entry-published');
?>
><?php
echo get_the_date();
?>
</time>
<?php
edit_post_link();
?>
<?php
hybrid_post_terms(array('taxonomy' => 'category', 'text' => esc_html__('Posted in %s', 'hybrid-base'), 'before' => '<br />'));
?>
<?php
hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => esc_html__('Tagged %s', 'hybrid-base'), 'before' => '<br />'));
?>
</footer><!-- .entry-footer -->
<?php
} else {
// If not viewing a single post.
?>
<div <?php
hybrid_attr('entry-content');
?>
>
<?php
the_content();
?>
开发者ID:dartokloning,项目名称:hybrid-base,代码行数:31,代码来源:quote.php
示例10: the_content
the_content();
?>
</div><!-- .entry-content -->
<?php
} else {
// If not a single post.
?>
<div class="entry-byline">
<?php
echo $time;
?>
• <?php
hybrid_post_terms(array('taxonomy' => 'category'));
?>
</div>
<header class="entry-header">
<h2 <?php
hybrid_attr('entry-title');
?>
><a href="<?php
the_permalink();
?>
" title="<?php
the_title_attribute();
?>
" rel="bookmark" itemprop="url"><?php
the_title();
开发者ID:EJOweb,项目名称:ejoweb,代码行数:31,代码来源:content.php
示例11: widget
//.........这里部分代码省略.........
?>
</a><?php
echo $args['after_title'];
?>
<?php
if (!empty($text)) {
// Check if there is text
?>
<div class="textwidget"><?php
echo wpautop($text);
?>
</div>
<?php
}
// END text check
?>
<?php
/* Get articles of current knowledgebase category */
$recent_posts_query = new WP_Query(array('post_type' => 'post', 'posts_per_page' => $number_of_posts, 'orderby' => 'post_date', 'order' => 'DESC'));
?>
<?php
if ($recent_posts_query->have_posts()) {
// Checks if any posts were found.
?>
<div class="recent-posts">
<?php
while ($recent_posts_query->have_posts()) {
// Begins the loop through found posts.
?>
<?php
$recent_posts_query->the_post();
// Loads the post data.
?>
<?php
$post_date = sprintf("<time %s>%s</time>", hybrid_get_attr('entry-published'), get_the_date('j F Y'));
?>
<article <?php
hybrid_attr('post');
?>
>
<div class="entry-byline">
<?php
echo $post_date;
?>
• <?php
hybrid_post_terms(array('taxonomy' => 'category'));
?>
</div>
<header class="entry-header">
<h4 <?php
hybrid_attr('entry-title');
?>
><a href="<?php
the_permalink();
?>
" title="<?php
the_title_attribute();
?>
" rel="bookmark" itemprop="url"><?php
the_title();
?>
</a></h4>
</header>
</article>
<?php
}
// End found posts loop.
?>
</div>
<?php
wp_reset_postdata();
?>
<?php
}
// End check for posts.
?>
<?php
echo $args['after_widget'];
?>
<?php
}
开发者ID:EJOweb,项目名称:ejoweb,代码行数:101,代码来源:recent-posts-widget.php
示例12: hybrid_post_terms
<?php
/**
* A template part for the default entry footer.
*
* @package Compass
* @subpackage HybridCore
* @copyright Copyright (c) 2015, Flagship Software, LLC
* @license GPL-2.0+
* @since 1.1.0
*/
if (has_term('', 'category') || has_term('', 'post_tag')) {
?>
<footer class="entry-footer">
<?php
hybrid_post_terms(array('taxonomy' => 'category', 'before' => '<p class="entry-meta categories">', 'after' => '</p>'));
hybrid_post_terms(array('taxonomy' => 'post_tag', 'before' => '<p class="entry-meta tags">', 'after' => '</p>'));
?>
</footer><!-- .entry-footer -->
<?php
}
开发者ID:flagshipwp,项目名称:compass,代码行数:23,代码来源:entry-footer.php
示例13: hybrid_attr
<span <?php
hybrid_attr('entry-author');
?>
><?php
the_author_posts_link();
?>
</span>
<time <?php
hybrid_attr('entry-published');
?>
><?php
echo get_the_date();
?>
</time>
<?php
hybrid_post_terms(array('taxonomy' => 'category', 'text' => esc_html__('%s', 'ubuntugnome')));
?>
<?php
comments_popup_link(number_format_i18n(0), number_format_i18n(1), '%', 'comments-link', '');
?>
<?php
edit_post_link();
?>
</div><!-- .entry-byline -->
</header><!-- .entry-header -->
<div <?php
hybrid_attr('entry-summary');
?>
>
开发者ID:UbuntuGNOMEMarketing,项目名称:ubuntugnome,代码行数:31,代码来源:content.php
示例14: single_post_title
single_post_title();
?>
</h1>
</header><!-- .entry-header -->
<div <?php
hybrid_attr('entry-content');
?>
>
<?php
the_content();
?>
<?php
echo wpautop(ravel_get_portfolio_item_link());
?>
<?php
edit_post_link();
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php
hybrid_post_terms(array('taxonomy' => 'portfolio', 'sep' => ' '));
?>
</footer><!-- .entry-footer -->
</article><!-- .entry -->
<?php
}
// End single post check.
开发者ID:ianperrin,项目名称:ravel,代码行数:31,代码来源:portfolio_item.php
示例15: the_content
>
<?php
the_content();
?>
<?php
wp_link_pages();
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<div class="entry-meta">
<?php
hybrid_post_terms(array('taxonomy' => 'category', 'text' => __('Posted in %s', 'taylor')));
?>
<?php
hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => __('Tagged %s', 'taylor')));
?>
<?php
edit_post_link(__('Edit', 'taylor'), '<span class="edit-link">', '</span>');
?>
</div>
</footer><!-- .entry-footer -->
<?php
} else {
// If not viewing a single post
?>
<header class="entry-header">
<?php
开发者ID:selenastrain,项目名称:taylor,代码行数:31,代码来源:video.php
示例16: tamatebako_entry_terms
/**
* Entry Terms
* a helper function to print all taxonomy/term attach to a post.
*
* @since 0.1.0
*/
function tamatebako_entry_terms()
{
/* Entry Taxonomies */
$entry_taxonomies = array();
/* Get Taxonomies Object */
$entry_taxonomies_obj = get_object_taxonomies(get_post_type(), 'object');
foreach ($entry_taxonomies_obj as $entry_tax_id => $entry_tax_obj) {
/* Only for public taxonomy */
if (1 == $entry_tax_obj->public) {
$entry_taxonomies[$entry_tax_id] = array('taxonomy' => $entry_tax_id, 'text' => $entry_tax_obj->labels->name);
}
}
/* If taxonomies not empty */
if (!empty($entry_taxonomies)) {
?>
<div class="entry-meta">
<?php
foreach ($entry_taxonomies as $tax_id => $entry_tax) {
?>
<?php
hybrid_post_terms(array('taxonomy' => $tax_id, 'text' => '<span class="term-name">' . $entry_tax['text'] . '</span>' . ' %s'));
?>
<?php
}
//end foreach
?>
</div>
<?php
}
//end empty check
}
开发者ID:Harreh,项目名称:magicowl,代码行数:38,代码来源:tamatebako.php
示例17: the_content
?>
>
<?php
the_content();
?>
<?php
wp_link_pages();
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php
hybrid_post_terms(array('taxonomy' => 'category', 'text' => esc_html__('Posted in %s', 'vaidusworld')));
?>
<?php
hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => esc_html__('Tagged %s', 'vaidusworld')));
?>
</footer><!-- .entry-footer -->
<?php
} else {
// If not viewing a single post.
?>
<header class="entry-header">
<?php
the_title('<h2 ' . hybrid_get_attr('entry-title') . '><a href="' . get_permalink() . '" rel="bookmark" itemprop="url">', '</a></h2>');
?>
<div class="entry-byline">
开发者ID:grvrulz,项目名称:vaidusworld,代码行数:31,代码来源:video.php
示例18: the_content
?>
>
<?php
the_content();
?>
<?php
wp_link_pages();
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php
hybrid_post_terms(array('taxonomy' => 'category'));
?>
<?php
hybrid_post_terms(array('taxonomy' => 'post_tag', 'before' => sprintf('<span class="sep">%s</span>', _x('·', 'post meta separator', 'saga'))));
?>
</footer><!-- .entry-footer -->
<?php
} else {
// If not viewing a single post.
?>
<header class="entry-header">
<?php
the_title('<h2 ' . hybrid_get_attr('entry-title') . '><a href="' . get_permalink() . '" rel="bookmark" itemprop="url">', '</a></h2>');
?>
<div class="entry-byline">
开发者ID:starise,项目名称:saga,代码行数:31,代码来源:audio.php
示例19: the_content
?>
>
<?php
the_content();
?>
<?php
wp_link_pages();
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php
hybrid_post_terms(array('taxonomy' => 'category', 'text' => __('Posted in %s', 'stargazer')));
?>
<?php
hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => __('Tagged %s', 'stargazer'), 'before' => '<br />'));
?>
</footer><!-- .entry-footer -->
<?php
} else {
// If not viewing a single post.
?>
<?php
get_the_image(array('size' => 'stargazer-full'));
?>
<header class="entry-header">
<?php
开发者ID:LSYanJun,项目名称:wordpress,代码行数:31,代码来源:gallery.php
示例20: hybrid_post_terms
<?php
/**
* Template part for displaying the entry footer.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*/
?>
<footer class="entry-footer">
<?php
hybrid_post_terms(array('taxonomy' => 'category', 'text' => esc_html__('Filed Under: %s', 'croft')));
?>
<?php
hybrid_post_terms(array('taxonomy' => 'post_tag', 'text' => esc_html__('Tagged With: %s', 'croft')));
?>
</footer><!-- .entry-footer -->
开发者ID:brettsmason,项目名称:croft,代码行数:17,代码来源:entry-footer.php
注:本文中的hybrid_post_terms函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论