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

Create Duplicate pages with dynamic [..slug].js files for pages and blog as well #65

Open
bindaasrakesh opened this issue Jul 10, 2021 · 0 comments

Comments

@bindaasrakesh
Copy link

Hi @imranhsayed ,
I created a Next JS project with wpgraqhl. I follow all your tutorials steps. I have faced one issues here details are given below -

  1. page/[slug] -
    These files are created for dynamic WordPress pages. But I noticed that it creates single post for every posts aswell.
    So please look into this and provide better solution that how can we stop creating single post page from these files.

URL - https://raw.githubusercontent.com/imranhsayed/nextjs-headless-wordpress/main/frontend/pages/%5B...slug%5D.js

  1. Pages/Blog/[slug].js -
    And same thing happen here, This files creating for dynamic posts single page. But it also created the dynamic pages as well.

URL - https://raw.githubusercontent.com/imranhsayed/nextjs-headless-wordpress/main/frontend/pages/blog/%5Bslug%5D.js

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