我正在尝试创建一个自定义WordPress页面,该页面将只包含指向我所有职位的链接,分为4列。我也使用WordPress的Bootstrap。用邮政标题创建一个自定义WordPress页面
我创建了php文件,使用她的页面属性创建了一个新页面,但帖子标题不显示。
这是我使用的代码:
<?php
/**
* The template used for displaying page content in questions.php
*
* @package fellasladies
*/
?>
<?php
<article id="post-<?php the_ID(); ?>" <?php post_class('col-md-4 col-sm-4 pbox'); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php
wp_link_pages(array(
'before' => '<div class="page-links">' . __('Pages:', 'fellasladies'),
'after' => '</div>',
));
?>
</div><!-- .entry-content -->
<?php edit_post_link(__('Edit', 'fellasladies'), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>'); ?>
</article><!-- #post-## -->
我真的很感谢你的帮助!谢谢
请您总结该文章的主要发现? –
页面名称显示在页面属性下,因此我选择了它。但是,当指向该页面时,不会显示所描述的帖子标题。 –