I would like to ask if there's a way on WordPress to get fetch all of the page's Field?... I am using a Advance Custom Field Plugin and would like to fetch data's from fields inputted over those fields from different pages..
So i have found a way to this already using this:
<?php
for ($x = 0; $x <= 1000; $x++) {
$rows = get_field('about_hotel', $x);
if($rows)
{
echo '<ul>';
foreach($rows as $row)
{
echo '<h1> ' . $row['hotel_name'] . '</h1><br/>'.'<p>' . $row['hotel_description'] . '</p>';
}
echo '</ul>';
}}
?>
But This way is quite unorthodox or is a very bad habit to use... can someone help me with this?
It would be very much appreciated.. Thank You...
get_pages()
?