I have a counter in a while loop and I want to add every value of that count in an array? Is it possible? What I tried:
$title_count = 0;
if(have_posts()){
while(have_posts()){
$title_count++;
the_post();
$max_array = array();
$add_to_array = array_push($max_array, $title_count);
}
}