✏️ 编辑:featured-content.php
路径:
/home/forge/kingkrunch.com/wp/wp-content/themes/foodstuff/featured-content.php
大小:928 B · 修改:2020-09-11 16:13:48 · 权限:0775 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php /** * The template for displaying featured content * * @package WordPress * @subpackage TemplateMela * @since TemplateMela 1.0 */ ?> <div id="featured-content" class="featured-content"> <div class="featured-content-inner"> <?php /** * Fires before the TemplateMela featured content. * * @since TemplateMela 1.0 */ do_action( 'tm_featured_posts_before' ); $featured_posts = tm_get_featured_posts(); foreach ( (array) $featured_posts as $order => $post ) : setup_postdata( $post ); // Include the featured content template. get_template_part( 'content', 'featured-post' ); endforeach; /** * Fires after the TemplateMela featured content. * * @since TemplateMela 1.0 */ do_action( 'tm_featured_posts_after' ); wp_reset_postdata(); ?> </div> <!-- .featured-content-inner --> </div><!-- #featured-content .featured-content -->
💾 保存
取消
保存为 UTF-8,换行统一为 LF