Add custom schema to post

I’ve used a custom field and added the data above which works well but isn’t user friendly. Use Custom Post Types and add Meta Boxes to make it user friendly. Here’s a basic example of adding a custom post type: function create_post_type() { register_post_type( ‘car’, array( ‘labels’ => array( ‘name’ => __( ‘Cars’ ), ‘singular_name’ … Read more

I Want a More Concice Form of Data than an Array

Instead of going for a complex nested array, I decided that it might be best to keep it to simple two level set of arrays. $x = array( 101 => [ (int $parent_id), (bool $completed) ], 102 => [ (int $parent_id), (bool $completed) ], 103 => [ (int $parent_id), (bool $completed) ], 104 => [ … Read more