The advanced post selection allows users to query posts by post ID’s array from a PHP function.
function getMyIDs($opt = ""){
$ids = array(4,5,6);
//the optiion meaned for some kind of conditions
if($opt == "first")
$ids = array(4,5,6);
else
$ids = array(10,15,30);
return($ids);
}