• Resolved 3v1l5w1n

    (@3v1l5w1n)


    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.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘display post with custom fields’ is closed to new replies.