have_posts()): while ($query->have_posts()): $query->the_post(); $random_color = $this->generate_random_color(); // get random color ?>
<?php the_title(); ?>
term_id)) . '"'; if ('true' === $random_color_switch) { echo ' style="background-color: ' . $random_color . '"'; } echo '>' . esc_html($categories[0]->name) . ''; } ?>

No posts found.

'; endif; ?>