Php WordPress主题更改元数据
如何编辑Wordpress主题(shape-从themeshaper.com下载)的Php文件来更改元数据 例如,下面的当前php文件显示普通帖子的元数据,如下所示: 例如,我想改为[author]在[date]发布,而不是像上面的图片那样在[date]写[avatar][author] Php文件(content.Php):Php WordPress主题更改元数据,php,wordpress,wordpress-theming,Php,Wordpress,Wordpress Theming,如何编辑Wordpress主题(shape-从themeshaper.com下载)的Php文件来更改元数据 例如,下面的当前php文件显示普通帖子的元数据,如下所示: 例如,我想改为[author]在[date]发布,而不是像上面的图片那样在[date]写[avatar][author] Php文件(content.Php): 我知道现在回答这个问题已经很晚了,但是如果其他人感兴趣的话,像这样的回答也可以 <p class="postmetadata"> <?php _e
我知道现在回答这个问题已经很晚了,但是如果其他人感兴趣的话,像这样的回答也可以
<p class="postmetadata">
<?php _e('Filed under:','domain'); ?>
<?php the_category(', ') ?> <?php _e('by','domain'); ?> <?php the_author(); ?>
<br/><?php the_tags(__('Tags:','domain'), ', ', '<br />'); ?>
<?php _e('Posted on: ','domain'); ?>
<?php the_time(get_option('date_format')); ?><br/>?>
<?php edit_post_link(__(' Edit','domain'), __(' |','domain'), ''); ?>
</p>
<?php
/**
* The template for displaying posts in the Aside post format
* @package Shape
* @since Shape 2.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'shape' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'shape' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'shape' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'shape' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a>
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="sep"> | </span>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'shape' ), __( '1 Comment', 'shape' ), __( '% Comments', 'shape' ) ); ?></span>
<?php endif; ?>
<?php edit_post_link( __( 'Edit', 'shape' ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->
<p class="postmetadata">
<?php _e('Filed under:','domain'); ?>
<?php the_category(', ') ?> <?php _e('by','domain'); ?> <?php the_author(); ?>
<br/><?php the_tags(__('Tags:','domain'), ', ', '<br />'); ?>
<?php _e('Posted on: ','domain'); ?>
<?php the_time(get_option('date_format')); ?><br/>?>
<?php edit_post_link(__(' Edit','domain'), __(' |','domain'), ''); ?>
</p>