I know that the code below will show the title of one or more blog posts on another webpage.
If I also have a page called Events, is there a way to show those titles instead?
// Include Wordpress
<?php while (have_posts()): the_post(); ?>
<?php the_title() ; ?>
<?php endwhile; ?>