Skip to main content
Improved formatting
Source Link
Jan Fabry
  • 30.5k
  • 4
  • 90
  • 136

Page as child in custom post type slug?

Is it possible to set a page as child of a custom post type slug?

I have the following sructurestructure: /projects (archive of cpt 'projects' with template archive-projects.php) /projects/project-1 (single view of cpt with template single-projects.php) /projects/downloads (this is a page)

  • /projects (archive of cpt projects with template archive-projects.php)
  • /projects/project-1 (single view of cpt with template single-projects.php)
  • /projects/downloads (this is a page)

When I try to open /projects/downloads/projects/downloads I get an 404 error. Is there a way to set a page in the cptcustom post type hierarchy?

Thanks! Aldo

Page as child in custom post type slug

Is it possible to set a page as child of a custom post type slug?

I have the following sructure: /projects (archive of cpt 'projects' with template archive-projects.php) /projects/project-1 (single view of cpt with template single-projects.php) /projects/downloads (this is a page)

When I try to open /projects/downloads I get an 404 error. Is there a way to set a page in the cpt hierarchy?

Thanks! Aldo

Page as child in custom post type slug?

I have the following structure:

  • /projects (archive of cpt projects with template archive-projects.php)
  • /projects/project-1 (single view of cpt with template single-projects.php)
  • /projects/downloads (this is a page)

When I try to open /projects/downloads I get an 404 error. Is there a way to set a page in the custom post type hierarchy?

Source Link
Aldo
  • 41
  • 2

Page as child in custom post type slug

Is it possible to set a page as child of a custom post type slug?

I have the following sructure: /projects (archive of cpt 'projects' with template archive-projects.php) /projects/project-1 (single view of cpt with template single-projects.php) /projects/downloads (this is a page)

When I try to open /projects/downloads I get an 404 error. Is there a way to set a page in the cpt hierarchy?

Thanks! Aldo