Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Categories not showing on individual post pages #488

Open
KeriGerheart opened this issue May 30, 2023 · 3 comments
Open

Categories not showing on individual post pages #488

KeriGerheart opened this issue May 30, 2023 · 3 comments

Comments

@KeriGerheart
Copy link

Looking at the demo site here:
https://next-wordpress-starter.spacejelly.dev/posts/how-to-improve-development-experience-with-eslint-extension/

The categories are not showing on the individual posts. When inspecting, it looks like categories return an empty array. I am seeing the same when cloning. Any ideas on how to fix this? Thanks!

@colbyfayock
Copy link
Owner

hey does the category have any entries in it other than itself?

this post for instance works: https://next-wordpress-starter.spacejelly.dev/posts/how-to-automate-deployments-on-content-change-in-wordpress-with-wp-webhooks-and-netlify/

the category has 2 additional posts in it

@KeriGerheart
Copy link
Author

KeriGerheart commented Jun 14, 2023

Hi @colbyfayock thanks for responding. Yes- it looks like in that example I gave, for the first category 'Development', that is the only post in there. https://next-wordpress-starter.spacejelly.dev/categories/development/ It does say 'and more', but I am not sure what the others are. Is that intentional that the categories do not show if there is only one post in the cat?
(Edited because I made a mistake in my initial response).

@KeriGerheart
Copy link
Author

Just another update, that another condition that causes the categories not display is if there is only one category assigned to the post, as seen here: https://next-wordpress-starter.spacejelly.dev/posts/how-to-create-a-headless-wordpress-blog-with-next-js-wordpress-starter/

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants