WordPress:将特定主题的帖子隔离到网站的一个部分
首先,我只编写了大量 HTML,了解一点 PHP,并且正在使用 Wordpress,以我学习其他所有内容的方式进行实验和学习,反复试验,错误较多。
我确定主题行不是很清楚。我建立了一个用于写作的网站。这些帖子充当类别和静态提交的页面菜单。主题中的所有帖子都会显示在第 1 页、第 2 页等。太棒了。
我想要弄清楚并想要的是这个。我想要一个单独的帖子部分用于一个主题,在本例中是电影评论。所以网站的主要部分是一般发布。我想要一个单独的部分,用户可以在其中发布他们内心的内容,但将这些电影帖子保留在一个部分中,而不是与“一般人群”混合在一起。好的,他们点击主页上的电影评论链接。这会将他们带到站点管理员,在那里他们可以在 TinyMCE 中撰写评论并发布。有没有办法让这些帖子显示在自己的部分中?
为此,我什至安装了第二个 WP 站点。太棒了,但现在我必须将所有注册用户和任何新用户转移到那里。那太疯狂了。另外,用户必须登录两次,一次登录原始版本,一次登录电影 WP。也是难以接受的。
如果我在错误的网站上提出这个问题,请告诉我并表示歉意。否则,一些指导会让我摆脱无休止的谷歌搜索。
First, I've only programmed a lot of HTML, know a little PHP and am playing with Wordpress, experimenting and learning it the way I learn everything else, trial and error, heavy on the error.
The subject line isn't very clear I'm sure. I have a site set up for writing. The posts act as categories and to a Page menu for static submissions. All posts, in the theme show up on page 1, 2, etc. Great.
What I'm trying to figure out and want is this. I want a separate section of Posts just for one topic, in this case movie reviews. So the main section of the site is general posting. I want a separate section where users can post to their hearts content but have those movie posts REMAIN in one section and not be mixed in with the "general population." Ok, they click on the Movie Review link on the main page. This takes them to the Site Admin where they can write a review in TinyMCE and Publish it. IS there a way that these Posts can show up in a section of their own?
I've even installed a second WP site for this purpose. Wonderful, but now I have to transfer all registered users there and any new ones. That's insane. Plus, the user would have to log in twice, once for the original and once for the Movie WP. Also unacceptable.
If I'm on the wrong site to ask this question, let me know and my apologies. Otherwise, some guidance would keep me from my endless Google search.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用类别来模仿这一点。因此,您的电影评论将位于 mysite.com/category/movie-reviews/。然后,您可以修改index.php以从主页中排除电影评论类别。
如果您习惯使用 PHP,则可以使用自定义帖子类型。这是一个更好的解决方案,但需要更多的自定义编码。我链接到的 Codex 页面底部有一些关于使用 CPT 的精彩演练。
You can use Categories to mimic this. So your movie reviews would be at mysite.com/category/movie-reviews/. You would then modify index.php to exclude the movie reviews category from the main page.
If you're comfortable with using php, you could instead use custom post types. This is a better solution, but would require more custom coding. The bottom of the Codex page I linked to has some excellent walkthroughs on using CPTs.