I have lots of pages that perform very different purposes in my website (landing pages, thank you pages, regular website pages, webinar pages, etc).

As such, I would like to group my pages into different "types".

Stage one is (I'm guessing) to figure out how to apply some kind of "page type" flag to pages. I suppose I could use custom fields for this, but I don't know if there is something more built in to WordPress that I should be using rather than creating a custom field, or if generally there are other things I should consider before getting started down this path.

Supplementary information (in case this affects the answer):

In addition to the core requirement, here are two other main considerations that may (or may not!) impact the approach needed (these do not need to be spoken to, I just add them for consideration):

  1. I would like each page type to be able to have different custom fields in the editing page, depending on the page type (eg, 'webinar' type page may want to have a 'webinar date' field, landing page might want to have 'thank you page URL' field, etc).

  2. Ultimately I would like to be able to add tabs to the Pages page that displays the page types similar to how Elementor treats their templates, ie:

enter image description here

1 Answer 1


You can use either a custom taxonomy or a custom field for page types. By the nature of custom taxonomy, I think it's a better solution than custom field.

To create custom fields for each page type, you can use a plugin like Meta Box along with Conditional Logic or Include Exclude extension. They allow you to define custom fields for posts/pages under some conditions such as by taxonomy terms, categories, page templates, or by other custom fields' values.

Regarding creating tabs for page types, I guess it's a custom code. WordPress doesn't support it by default. Maybe you can look at Elementor's code to see how they do that.

  • Thanks @Anh! A bit of code for registering a custom taxonomy, as well as any reference(s) would make this answer more helpful, too.
    – Drewdavid
    Commented Sep 27, 2018 at 17:59
  • Also I reached out to Meta Box describing my use case and I will see what they recommend.
    – Drewdavid
    Commented Sep 27, 2018 at 17:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.