Can I use custom post types to create a parent/child relationship?
I’m using this code for a metabox in a current project I’m working on: function parent_select ($parent_type) { global $post; global $wpdb; $query = “SELECT ID, post_title FROM $wpdb->posts WHERE post_type=”{$parent_type}” AND post_status=”publish” ORDER BY post_title”; $results = $wpdb->get_results($query, OBJECT); echo ‘<select name=”parent_id” id=”parent_id”>’; echo ‘<option value = “”>None</option>’; foreach ($results as $r) { echo … Read more