wp-papi / papi

:rocket: WordPress Page Type API with custom fields
https://wp-papi.github.io
MIT License
263 stars 32 forks source link

Standard Page Type not Showing #229

Closed Log1x closed 7 years ago

Log1x commented 7 years ago

What I expected

When setting standard_type to true, I expect the Add New Page to allow me to choose my custom Papi pagetype or a normal/standard page type.

What happened instead

It doesn't show the page type selection and goes straight to adding my Papi page type.

Steps to reproduce

  1. Set standard_type to true when extending Papi_Page_Type
  2. Go to Page -> Add New
  3. Expect it to let you choose the Papi page type or a Standard page, but it goes straight to adding a Papi page type.

What versions of softwares are you using?

Note: This is my first time using Papi, so if I'm misunderstanding what standard_type does, I apologize. If this is the case, is there any way to accomplish what I'm trying to do? I'd like to add a custom Papi page type, but also allow the user to do a normal page and not completely override default WordPress' page behavior. Hope this makes sense.

Log1x commented 7 years ago

Accidentally stumbled upon the papi/settings/show_standard_page_type_{$post_type} filter which did the trick.

Closing this.