本文整理汇总了PHP中hybrid_post_terms函数的典型用法代码示例。如果您正苦于以下问题:PHP hybrid_post_terms函数的具体用法?PHP hybrid_post_terms怎么用?PHP hybrid_post_terms使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了hybrid_post_terms函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
示例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 -->
示例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 -->
示例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
示例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' => ''));
}
示例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
示例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
}
示例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();
?>
示例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();
?>
示例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();
示例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
}
示例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
}
示例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');
?>
>
示例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.
示例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