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

Doesn't show custom posts list in selected page #9

Open
fabienlege opened this issue Oct 24, 2017 · 2 comments
Open

Doesn't show custom posts list in selected page #9

fabienlege opened this issue Oct 24, 2017 · 2 comments

Comments

@fabienlege
Copy link

Step To reproduce

  1. Create a custom post type and create some samples posts
  2. install this 'page-for-post-type' plugin
  3. Chose a page to use as archive in setup > reading
  4. Go to selected page URL :

The bug is here :
Chosen page correctly appear but seam to use 'page.php' template (and not 'index.php' or 'archive.php' template). my custom posts are not listed on my page. Why ?

@codepuncher
Copy link

That is because this isn't meant to provide the post type loop for you. This is just to let users choose a page to act as the relating archive to the post type. This means you can put anything on this page. If you want posts then you'll have to write a custom query.

@roborourke
Copy link
Contributor

Might be worth better explaining this and documenting how to add that query. The main problem that was trying to solve was placing a post type archive within a page hierarchy.

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

No branches or pull requests

3 participants