How to withdraw in a loop only 3 records CMS WP?

How to withdraw in a loop only 3 records CMS WP?
Simple output looks like this:






3 records need to withdraw from one heading, for example, ID "1".
July 8th 19 at 11:29
3 answers
July 8th 19 at 11:31
July 8th 19 at 11:33
The limit parameter is there
July 8th 19 at 11:35
Hook pre_get_posts, it $query->set( 'posts_per_page', 3 );
https://codex.wordpress.org/Plugin_API/Action_Refe...

Find more questions by tags PHPWordPress