WordPress.org

Support

Support » How-To and Troubleshooting » get posts by post_parent greater than 0

get posts by post_parent greater than 0

  • Hello

    although I have read codex page about wp_query parameters I cannot fetch posts that post_parent is greater than zero.

    these are my arguments:

    $arg=array(“post_parent”=>WHAT HERE?,”post_type”=>”attachment”,”post_mime_type”=>”image”)

    I’d prefer not to use posts_where filter.

    Can I achieve this with basic query?
    Thanks

  • The topic ‘get posts by post_parent greater than 0’ is closed to new replies.