WordPress Request Post All Post ID in a Loop? [closed]

Currently from your code I can see you are looping for post IDs from 1 to 1000 that isn’t good. WordPress have lot of functions by which you can fetch post IDs, content and other information. One of them (according to your need) is get_pages()

Check the documentation of get_pages() there are lot of examples.

See the Example from above code:-

$all_pages = get_pages(array(
    'number' => -1
));

foreach ($all_pages as $page) {
    $rows = get_field('about_hotel', $page->ID);
    if($rows) {
        echo '<ul>';

        foreach($rows as $row)
        {
          echo '<h1> ' . $row['hotel_name'] . '</h1><br/>'.'<p>' . $row['hotel_description'] . '</p>';
        }
        echo '</ul>';

      }    
}