WordPress.org

Ready to get started?Download WordPress

Forums

get posts by post_parent greater than 0 (1 post)

  1. dadastudio
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic