我新来用 wordpress 进行模板编辑, 我正试图获取页面描述, 以显示在我的网站上, 但它没有出现。 URL Im 试图显示描述的 URL 是在这里 :
http://fourwallsla.com/cortion/the-neighborhood/east-side/
我将页面描述的截图附加到 wordpress 中。 它似乎正在使用归档模板( 为什么没有使用页面模板? ) 。
以下是归档模板的一些代码 :
<div class="main">
<?php if (have_posts()) : $first = true; ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h1><?php single_cat_title(); ?></h1>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h1><?php single_tag_title(); ?></h1>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h1><?php echo get_the_time( F jS, Y ); ?></h1>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h1><?php echo get_the_time( F, Y ); ?></h1>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h1><?php echo get_the_time( Y ); ?></h1>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h1><?php _e( Author Archive , gray_white_black ); ?></h1>
<?php /* If this is a paged archive */ } elseif (isset($_GET[ paged ]) && !empty($_GET[ paged ])) { ?>
<h1><?php _e( Blog Archives , gray_white_black ); ?></h1>
<?php } ?>
<ul class="post-list">
<?php while (have_posts()) : the_post();
上面的代码中, 栏号 () 适当时指的是页面所显示的类别中家庭列表的内容。 但是, 我如何获得页面本身的栏号? 屏幕截图中显示的页号? 谢谢 。
""https://i.sstatic.net/HJy1o.png" alt="此处的内置图像描述"/ >