I have some posts that have custom field "myField" set to value "true". I know how to display such posts (inside a loop I can use get_post_meta to find all posts that have "myField" set to "true"). Now suppose I create customFieldPosts.php which will execute such loop. I would like to put a link into my sidebar "myblog.com/myField/true".
How do I redirect the trafic (from the index.php in wp root folder) to my the customFieldPosts.php sending along "myField" and "true" as query parameters.