I'm stuck with some strange problem , Whenever user search for a post it first looks on a post , if a post is available it show the post but when post is not available it creates new post via code and gets the post content from other sites API . So everything is working perfectly until I find that there are some post whos have different ID but their slug are same and when I open that post. WordPress single.php show the content of both page at same time.
关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
两个不同的WordPress帖子,两个不同的ID,但有相同的slug
收起
- 写回答
- 好问题 0 提建议
- 关注问题
微信扫一扫点击复制链接分享
- 邀请回答
- 编辑 收藏 删除 结题
- 收藏 举报
0条回答 默认 最新
报告相同问题?
提交
- 2020-09-12 13:17cumohuo9136的博客 wordpress自定义Do you want to create a custom single post... 您是否要在WordPress中创建自定义的单个帖子模板? Custom single post templates allow you to use different layouts for your individual blog p...
- 2021-04-21 21:15郭福临的博客 我正在使用woo commerece插件,并且希望每个产品的标题下都有一个子标题.样式和格式已排序,但是我希望特定类别显示在子标题部分.我已经设法显示所有类别,但我想将其缩小到父类别下的一个类别.以下是我使用的代码,谁能...
- 2021-04-30 02:29weixin_39784774的博客 本文主要介绍WordPress主题层次结构,让我们了解WordPress主题幕后的工作原理。以便在自定义主题或创建自定义WordPress主题时,非常有用。...相关:选择WordPress主题前应该注意的9件事WordPress有一个标准的模...
- 2020-06-19 11:37cunjie3951的博客 您将要创造的 有时,您希望博客文章出现在WordPress网站中的页面上,而不只是博客。 您已经可以选择使用类别和分类档案以及标签。 这可以帮助您划分内容,并在博客或新闻站点中添加各种部分。 但是有时您可能会...
- 2021-04-22 21:04weixin_39944944的博客 如所讨论的,模板文件是模块化的,可重复使用的文件,用于在WordPress站点上生成网页。 一些模板文件(如页眉和页脚模板)用于所有网站的页面,而其他模板文件仅在特定条件下使用。本文解释WordPress如何确定在单个...
- 2020-09-08 11:01cumohuo9136的博客 Have you ever wanted to showcase your recent posts from each category in your WordPress sidebar? Recently, one of our users asked us for an easy way to display recent posts from a specific category in...
- 2020-06-13 20:54cunjie3951的博客 在本系列的前一部分中,有关使用WP REST API和AngularJS构建由WordPress驱动的前端,我们分析了项目需求,评估了线框,下载并编译了HTML包,并为WordPress构建了随行插件,该插件可以修改对Posts和Users资源。...
- 2020-08-31 02:47culi3182的博客 wordpress插件A WordPress Post Series plugin enables you to organize your posts serially to create a book or a course. It provides users a path for learning. Posts series plugins can also be used to ...
- 2020-09-02 20:35cumyupx7788305的博客 wordpress页面Do you want to exclude specific pages, authors, and more from WordPress search? By default, WordPress search includes all posts and pages in the search results. In this article, we will ...
- 2023-06-30 10:43Npcink的博客 本节主要给出在 WordPress 中添加菜单和子菜单的方法,尤其是其中通过函数添加子菜单的方法,少有人用。希望能帮助大家查缺补漏,提升认知和开发效率。
- 没有解决我的问题, 去提问