这是一个single.php中和例如URL是 http://url.com/sample-post/如何使用slu show显示额外的内容?
我增加了一些额外的内容与先进的自定义字段的插件,并显示在内容。一切都在这里,但我想显示这个额外的内容,如http://url.com/sample-post/extra-content/
这可能吗?如果是的话,我该怎么做?我一直在寻找几个小时,但我还没有找到任何东西。
我希望你能理解我,所以对我的英语不好。谢谢大家谁会帮忙。
<?php get_header(); ?>
<main class="content" role="main">
<?php while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php the_field('some-extra-content'); ?> // Extra Content
<?php endwhile; ?>
</main>
<?php get_footer(); ?>