Created
March 2, 2016 15:30
-
-
Save jprieton/15bdb7e953d9ec3ec92c to your computer and use it in GitHub Desktop.
Set WordPress post hierarchical
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_post_type_support( 'post', 'page-attributes' ); | |
add_action( 'init', function() { | |
global $wp_post_types; | |
$wp_post_types['post']->hierarchical = true; | |
}, 99 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment