最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

categories - WordPress link to post links to category (loop)

programmeradmin3浏览0评论

Mindnumbing problem.

  1. create a blog post in WP backend
  2. select category for post (e.g. podcast)
  3. click update

Navigate to blog category page ()

Click on post ()

URL stays the same in the location bar (url), does not show post, instead redirects to some category (unknown) that lists one blog post. Clicking on THIS post also does not show the post, but redirects to some other URL that shows a category listing of blog posts.

Some posts do work. Not sure why some and not others. Any useful direction is appreciated.

Mindnumbing problem.

  1. create a blog post in WP backend
  2. select category for post (e.g. podcast)
  3. click update

Navigate to blog category page (https://www.bioelectricshield.com/in-the-media/category/podcast)

Click on post (https://www.bioelectricshield.com/in-the-media/emfs-empaths-need-to-know)

URL stays the same in the location bar (url), does not show post, instead redirects to some category (unknown) that lists one blog post. Clicking on THIS post also does not show the post, but redirects to some other URL that shows a category listing of blog posts.

Some posts do work. Not sure why some and not others. Any useful direction is appreciated.

Share Improve this question asked Mar 9, 2022 at 21:15 senorsamsenorsam 112 bronze badges 4
  • Impossible to know without the code that is causing this behaviour. – cjbj Commented Mar 9, 2022 at 21:35
  • How would I provide this? – senorsam Commented Mar 10, 2022 at 23:44
  • Well, you're the one who is apparently developing a site... The problem is likely caused by a plugin or theme. Switch each of them on/off, see which one is causing the desired behaviour and once you know, narrow it down to the offensive code. – cjbj Commented Mar 11, 2022 at 15:17
  • Thank you @cjbj. It was an issue with the theme. – senorsam Commented Mar 11, 2022 at 19:14
Add a comment  | 

1 Answer 1

Reset to default 1

Found the problem It was theme (Impreza) related (thank you @cjbj).

When the blog post category was created, it created a loop via the theme:

incorrect:

correct:

发布评论

评论列表(0)

  1. 暂无评论