Wordpress - 三个具有相同 slug 的自定义帖子
Wordpress - Three custom posts with the same slug
我有三个具有相同标题和地址的 post,如果我登录它会显示我的 post,但注销时看不到它们并显示我404 如果我们能以某种方式读取这些 posts?
我读 post 是这样的:
<?php while ( have_posts() ) : the_post(); ?>
<?php
get_template_part('templates/content', 'single');
?>
<?php endwhile; // end of the loop. ?>
我认为您的 post 是私有的 post。只需从他们那里编辑一个 post 并在内容编辑器的右侧查看。选项很少,把这个postpublic然后点击update.
现在检查,您的问题已解决。
阅读本文以获取更多信息:http://en.support.wordpress.com/posts/post-visibility
我有三个具有相同标题和地址的 post,如果我登录它会显示我的 post,但注销时看不到它们并显示我404 如果我们能以某种方式读取这些 posts?
我读 post 是这样的:
<?php while ( have_posts() ) : the_post(); ?>
<?php
get_template_part('templates/content', 'single');
?>
<?php endwhile; // end of the loop. ?>
我认为您的 post 是私有的 post。只需从他们那里编辑一个 post 并在内容编辑器的右侧查看。选项很少,把这个postpublic然后点击update.
现在检查,您的问题已解决。
阅读本文以获取更多信息:http://en.support.wordpress.com/posts/post-visibility