• Hi,

    I wanted to know if it was possible to enable the hierarchy on the posts by default without going through a plugin, but just adding the code in theele’s functions.php file

    Romain

Viewing 1 replies (of 1 total)
  • When you add code, it has to go somewhere, and it’s best to put it in a plugin. This is because plugins are individually activated. Also, plugins are loaded before themes are. Also, you can switch themes and the code is then not executed. Also, you can update your theme and lose your code.

    Making the change from non-hierarchical to hierarchical is unpredictable. The Page post type is hierarchical, and the way its URLs are generated reflect that. The Post post type is non-hierarchical, but has a hierarchical taxonomy (category). Its URLs can be one of several choices, but none of them are hierarchical, because Posts aren’t.
    I don’t recommend that you make this change.

Viewing 1 replies (of 1 total)
  • The topic ‘Add hierarchy to default post’ is closed to new replies.