Tag Info

New answers tagged


The following filter shows only the top-level custom post type items in page attribute dropdowns (in main edit screen and in quick edit). Replace the 'my_custom_post_type' with your custom post type name. function my_test($args) { global $post_type_object; if ( $post_type_object->name == 'my_custom_post_type') { $args['depth'] = 1; } ...


First of all, in WordPress here the best option to solve my problem is using Custom Post Types and Custom Taxonomies. To do that, I've created a file named "my_custom_posts.php" and put it inside the theme's root folder. Then I've included this file in my "functions.php" using require('my_custom_posts.php'); You can also put your custom post type ...

Top 50 recent answers are included