I'm using this code for generating a Feed from lasted modified post
mysqli_query( $conn,
"SELECT * FROM wp_posts
WHERE post_status = 'publish'
AND post_type = 'post'
AND DATE(post_modified) > DATE(post_date)
ORDER BY post_modified DESC
LIMIT 50"
);
and it works perfect, now I need to reproduce in a WordPress plugin and I use this code:
$lastupdated_args = array(
'paged' => $paged,
'orderby' => 'modified',
'ignore_sticky_posts' => '1'
);
but in this case it shows all posts ordered my latest modification and not only modified post.
Is it possible to fix?