您可以使用wordpress中包含的自定义字段
添加新帖子并执行以下步骤:
1. Go to the Options page

2. Select "custom fields" and hit the reload button

3. you now have a custom field in your post edit page at the bottom.

现在,您可以在
post-loop
<?php while ( have_posts() ) : the post(); ?>
<?php echo get_post_meta($post->ID, \'featured\', true); ?>
<?php endwhile; ?>
您必须将“特色”替换为自定义字段的名称。
创建自定义字段后,也可以在其他帖子中使用它。
希望这有帮助。