Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Child post redirects to parent #4

Open
akshatkedia opened this issue Feb 4, 2021 · 0 comments
Open

Child post redirects to parent #4

akshatkedia opened this issue Feb 4, 2021 · 0 comments

Comments

@akshatkedia
Copy link

I modified the plugin code to work with CPTs. You can view my forked repository here: https://github.com/akshatkedia/allow-numeric-stubs

WordPress is now allowing numeric slugs for CPTs but when I visit a child post with a numeric slug it redirects to the parent post automatically. So for example I have a Programmes CPT. There is a parent program with the slug: programmes/city-in-visible/ and a child program with the slug: programmes/city-in-visible/2009/

Visiting programmes/city-in-visible/2009/ redirects to programmes/city-in-visible/

Can you please suggest a solution for this?

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

No branches or pull requests

1 participant