当前位置: 首页>>代码示例>>PHP>>正文


PHP the_taxonomies函数代码示例

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


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

示例1: test_the_taxonomies

 function test_the_taxonomies()
 {
     $post_id = $this->factory->post->create();
     ob_start();
     the_taxonomies(array('post' => $post_id));
     $output = ob_get_clean();
     $link = get_category_link(1);
     $expected = 'Categories: <a href="' . $link . '">Uncategorized</a>.';
     $this->assertEquals($expected, $output);
 }
开发者ID:Benrajalu,项目名称:philRaj,代码行数:10,代码来源:taxonomy.php

示例2: if

				<div class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></div>

				<?php the_content('<p class="serif">' . __('Read the rest of this entry &raquo;', 'xpress') . '</p>'); ?>

				<?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'xpress') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

				<div class="navigation">
					<div class="alignleft"><?php previous_image_link() ?></div>
					<div class="alignright"><?php next_image_link() ?></div>
				</div>
				<br class="clear" />

				<p class="postmetadata alt">
					<small>
						<?php printf(__('This entry was posted on %1$s at %2$s and is filed under %3$s.', 'xpress'),  get_the_time(__('l, F jS, Y', 'xpress')), get_the_time(), get_the_category_list(', ')); ?>
						<?php the_taxonomies(); ?>
						<?php printf(__("You can follow any responses to this entry through the <a href='%s'>RSS 2.0</a> feed.", "xpress"), get_post_comments_feed_link()); ?> 

						<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
							// Both Comments and Pings are open ?>
							<?php printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'xpress'), trackback_url(false)); ?>

						<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
							// Only Pings are Open ?>
							<?php printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'xpress'), trackback_url(false)); ?>

						<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
							// Comments are open, Pings are not ?>
							<?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.', 'xpress'); ?>

						<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
开发者ID:nunoluciano,项目名称:uxcl,代码行数:31,代码来源:image.php

示例3: the_author_posts_link

<div class="post-meta the-icons pmeta-alt">
<span class="post-author"><i class="fa fa-user"></i><?php 
the_author_posts_link();
?>
</span>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span class="post-time"><i class="fa fa-clock-o"></i><?php 
echo the_time(get_option('date_format'));
?>
</span>
&nbsp;&nbsp;&nbsp;&nbsp;
<?php 
if (is_tax()) {
    echo the_taxonomies('before=<span class="post-category"><i class="fa fa-file"></i>&after=</span>');
} else {
    ?>
<span class="post-category"><i class="fa fa-file"></i><?php 
    echo dez_get_singular_cat();
    ?>
</span>&nbsp;&nbsp;&nbsp;&nbsp;
<?php 
}
if (comments_open()) {
    if (!is_tax()) {
        ?>
<span class="post-comment"><i class="fa fa-comment"></i><?php 
        comments_popup_link(__('No Comment', TEMPLATE_DOMAIN), __('1 Comment', TEMPLATE_DOMAIN), __('% Comments', TEMPLATE_DOMAIN));
        ?>
</span>
<?php 
    }
开发者ID:jrbranaa,项目名称:pitchperspectives,代码行数:31,代码来源:post-meta-home.php

示例4: the_post_thumbnail

    the_post_thumbnail('medium');
    ?>

                </div>
                <div class="col-md-8" >
                    <h2 class="text-left titlePost"><?php 
    the_title();
    ?>
</h2>
                    
                    <div class="movieInfo"><br/>



                        <p> <?php 
    the_taxonomies();
    ?>
</p>

                    </div>
                    <?php 
    the_content();
    ?>

                </div>

            </div>
        </div>
        <div class="col-md-2">
            <div class="row sidebar">
                <?php 
开发者ID:andxbes,项目名称:secondWPSite,代码行数:31,代码来源:single.php

示例5: the_taxonomies

" name="sellsqlinfo1" id="sellsqlinfo1"/>
          <input type="hidden" value="<?php 
                    echo $no_of_coupon;
                    ?>
" name="noofcoupon1" id="noofcoupon1"/>
          <?php 
                }
                ?>
        </li>
      </ul>
      <?php 
                if (templ_is_show_post_category()) {
                    ?>
      <div id="post_category">
        <?php 
                    the_taxonomies(array('before' => '<span class="categories">', 'sep' => '</span><span class="tags">', 'after' => '</span>'));
                    ?>
      </div>
      <?php 
                }
                ?>
      <div id="content" class="text_content">
       <?php 
                echo "" . $post->post_excerpt . "";
                ?>
        <a href="<?php 
                the_permalink();
                ?>
" class="readmore_link">
        <?php 
                _e(get_option('ptthemes_content_excerpt_readmore'));
开发者ID:annguyenit,项目名称:getdeal,代码行数:31,代码来源:index.php

示例6: widget


//.........这里部分代码省略.........
                    ?>
</strong></li>
								<li class="rate_our_price"><span><?php 
                    echo OUR_PRICE;
                    ?>
</span> <strong><small><?php 
                    echo get_currency_sym();
                    ?>
</small><?php 
                    echo $our_price;
                    ?>
</strong></li>
								<li class="rate_percentage"><span><?php 
                    echo YOU_SAVE;
                    ?>
</span> <strong><?php 
                    echo @number_format($percentsave, 2);
                    ?>
%</strong></li>
								<li class="bdr_none rate_item_sold"><span><?php 
                    echo ITEMS_SOLD;
                    ?>
</span> <strong><?php 
                    echo $sellsqlinfo;
                    ?>
</strong>
							</ul>
<?php 
                    $post_categories = wp_get_post_terms($post->ID, 'seller_category');
                    if ($post_categories[1] != "") {
                        ?>
								<div class="post_cats clearfix">
<?php 
                        the_taxonomies(array('before' => '<span class="categories">', 'sep' => '</span><span class="tags">', 'after' => '</span>'));
                        ?>
								</div>
<?php 
                    }
                    if (get_post_meta($post->ID, 'enddate', true) == '0' && get_option('ptttheme_view_opt') != 'Grid View' && get_post_meta($post->ID, 'status', true) == '1') {
                        ?>
		<?php 
                        if (get_post_meta($post->ID, 'coupon_type', true) == 1) {
                            ?>
						<a href="<?php 
                            echo get_post_meta($post->ID, 'coupon_link', true);
                            ?>
" title="<?php 
                            echo BUY_NOW;
                            ?>
" class="btn_buy_deal" target="_blank"><?php 
                            echo BUY_NOW;
                            ?>
</a>
		<?php 
                        } else {
                            ?>
						<a href="<?php 
                            echo get_option('siteurl');
                            ?>
/?ptype=buydeal&amp;did=<?php 
                            _e($post->ID, 'templatic');
                            ?>
" title="<?php 
                            echo BUY_NOW;
                            ?>
" class="btn_buy_deal"><?php 
开发者ID:annguyenit,项目名称:getdeal,代码行数:67,代码来源:deal_widget.php

示例7: the_title

" rel="bookmark" title="Permanent Link to <?php 
        the_title();
        ?>
"><?php 
        the_title();
        ?>
</a></h2>

			<div class="entry">
				<?php 
        the_excerpt();
        ?>
			</div>
			<p class="postmetadata">
				<?php 
        the_taxonomies('before=<p class="tags">&after=</p>&template=%s: %l.');
        ?>
 | <?php 
        edit_post_link('Edit', '', ' | ');
        ?>
				<?php 
        comments_popup_link('No Comments »', '1 Comment »', '% Comments »');
        ?>
			</p>
		</div>

		<div style="clear:both;"></div>

	<?php 
    }
    ?>
开发者ID:NicoGill,项目名称:Archistyle,代码行数:31,代码来源:wpus-results-template-thumbnail.php

示例8: the_permalink

<a href="<?php 
the_permalink();
?>
">
  <h2> <?php 
the_title();
?>
</h2>
</a>

<?php 
the_content();
?>

<p> 
  <?php 
the_author_posts_link();
echo "  ";
the_time("Y-M-D H:i");
?>
</p> 
 
<br>

<?php 
the_taxonomies(['before' => '<div class="taxonomies">', 'sep' => '<br>', 'after' => '</div>']);
?>
 
开发者ID:rickisen,项目名称:Wordpress-Assignment,代码行数:27,代码来源:blogpost.php

示例9: get_post_time

<div class="entry-metadata">
  <time class="updated" datetime="<?php 
echo get_post_time('c', true);
?>
"><?php 
echo get_the_date();
?>
</time>
  <div class="byline author vcard">
    <?php 
echo __('By', 'sage');
?>
 
    <a href="<?php 
echo get_author_posts_url(get_the_author_meta('ID'));
?>
" rel="author" class="fn"><?php 
echo get_the_author();
?>
</a>
  </div>
  <div class="taxonomy"><?php 
the_taxonomies(['template' => '<span class="tax-label">%s:</span> %l']);
?>
</div>
  <div class="tags"><?php 
the_tags(' ');
?>
</div>
</div>
开发者ID:drawcard,项目名称:sage,代码行数:30,代码来源:entry-meta.php

示例10: the_time

echo the_time(get_option('date_format'));
?>
</abbr></span>
<span class="meta-no-display"><a href="<?php 
echo esc_url(get_permalink());
?>
" rel="bookmark"><?php 
echo the_title_attribute();
?>
</a></span><?php 
echo $modtime;
?>

<?php 
if (get_post_type() != 'post' && get_post_type() != 'page') {
    echo the_taxonomies(array('template' => '% %l', 'before' => '<span class="post-category"><i class="fa fa-file"></i>', 'after' => '</span>'));
} else {
    if (get_post_type() != 'page') {
        if (!in_category('1')) {
            ?>
<span class="post-category"><i class="fa fa-file"></i><?php 
            if (is_singular()) {
                echo the_category(', ');
            } else {
                echo dez_get_singular_cat();
            }
            ?>
</span>
<?php 
        }
    }
开发者ID:jun200,项目名称:wordpress,代码行数:31,代码来源:post-meta.php

示例11: the_excerpt

		<?php 
the_excerpt();
?>

	</div><!-- .entry-content -->

	<footer class="entry-footer">

		<?php 
if (get_post_type() == 'publicacoes') {
    ?>
			<?php 
    $args = array('before' => '<p class="entry-meta">', 'after' => '</p>', 'template' => '%1$s: %2$l');
    ?>
			<?php 
    the_taxonomies($args);
    ?>

			<?php 
    echo get_pdf_link();
    ?>
			<?php 
    echo "-";
    ?>
			<?php 
    echo get_fonte_link();
    ?>
			
		<?php 
}
?>
开发者ID:nitaibezerra,项目名称:Argent-Neue,代码行数:31,代码来源:content.php

示例12: the_title

        <a href="javascript:fbShare('<?php 
echo $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
?>
', '<?php 
echo the_title();
?>
', 'Trouver vos ensembles', 'http://goo.gl/dS52U', 520, 350)" class="color-facebook"><i class="fa fa-facebook"></i><span>-</span></a>
      </div>
      <div class="look-content-text"><?php 
echo $post->post_content;
?>
</div>
      <div class="look-content-tags">
        <span class="tags-title">Tags :</span>
        <?php 
the_taxonomies(array('before' => '<span>', 'sep' => ' ', 'after' => '</span>', 'template' => '<a href="%s">#%l</a>'));
?>
       
      </div>
    </div>

    <!-- SIMILARS -->
    <div class="look-similars col-md-12">
      <div class="row">
      <?php 
$posts = get_field('premier');
if ($posts) {
    foreach ($posts as $post) {
        ?>
          <?php 
        setup_postdata($post);
开发者ID:stowback,项目名称:coat_recipe,代码行数:31,代码来源:single.php

示例13: get_theme_option

<?php 
        $get_ads_single_bottom = get_theme_option('ads_single_bottom');
        if ($get_ads_single_bottom != '') {
            ?>
<div class="adsense-single"><?php 
            echo stripcslashes(do_shortcode($get_ads_single_bottom));
            ?>
</div>
<?php 
        }
        ?>

<?php 
        if (get_post_type() != 'post' && get_post_type() != 'page') {
            echo the_taxonomies('before=<span class="post-category">&after=</span>');
        }
        ?>

</div>

<?php 
        do_action('bp_after_post_content');
        ?>

<?php 
        get_template_part('lib/templates/post-meta', 'bottom');
        ?>

<?php 
        $get_related = get_theme_option('related_on');
开发者ID:jrbranaa,项目名称:pitchperspectives,代码行数:30,代码来源:single.php

示例14: the_permalink

																
																<header class="clearfix">

																		<div class="post-head">
																				<h2 class="post-title">                                                                          
																						<a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a>                                                                      
																				</h2>
																				<small>
                                                                                        <?php 
        the_taxonomies(array('post' => $post->ID, 'before' => '', 'sep' => ', ', 'after' => '', 'template' => '<span>%s:</span>  %l'));
        ?>
																				</small>
																		</div>
                                                                        <div class="price"><span><?php 
        echo get_post_meta($post->ID, 'menu_price', true);
        ?>
</span></div>
																</header>																																
																
																<?php 
        if (has_post_thumbnail()) {
            ?>
																		<div class="post-thumb clearfix">													
																				<?php 
            $image_id = get_post_thumbnail_id();
开发者ID:VladislavMaslakov,项目名称:seven,代码行数:30,代码来源:single-menu-item.php

示例15: get_cpt_wc_talks

function get_cpt_wc_talks($atts)
{
    $args = array('post_type' => 'wordcamp-talks');
    $wcloop = new WP_Query($args);
    while ($wcloop->have_posts()) {
        $wcloop->the_post();
        //get post meta info
        $wc_talks_url = get_post_meta(get_the_id(), '_wc_talks_url_meta_value_key', true);
        $wc_talks_pres_notes = get_post_meta(get_the_id(), '_wc_presentation_url_meta_value_key', true);
        $wc_talks_video_url = get_post_meta(get_the_id(), '_wc_video_url_meta_value_key', true);
        //echo some stuff out
        echo '<p>';
        echo '<a href="';
        echo the_permalink();
        echo '" title="';
        echo the_title();
        echo '">';
        echo the_post_thumbnail();
        echo '</a>';
        echo '<p><h3>';
        echo the_title();
        echo '</h3>';
        echo the_content();
        echo '</p>';
        echo '</p><hr/>' . '<p>Session Links: ' . '<a href="' . $wc_talks_url . '">Visit WordCamp Site</a> | <a href="' . $wc_talks_pres_notes . '">Sessions Details</a> | <a href="' . $wc_talks_video_url . '">Watch Session</a></p>' . the_taxonomies($args);
    }
    wp_reset_query();
}
开发者ID:KrashKartMedia,项目名称:wordcamp-talks,代码行数:28,代码来源:wordcamp_talks.php


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