ID; $post_data = get_post($id, ARRAY_A); $slug = $post_data['post_name']; return $slug; } function get_topo(){ include "topo.php"; } function get_makingof(){ include "makingof.php"; } ?> query_vars); require TEMPLATEPATH .'/'. $slug .'.php'; ?>