Latest events feed on homepage
-
I have an events calendar on a dedicated events page. However I want to show a feed of the three latest events on my homepage.
I’ve looked through the documentation and can find nothing that suggest how to do this. I would like to be able to manage the output of the feed as you would do a normal latest post feed.
Here’s what my latest posts feed looks like:
<?php $args = array( 'numberposts' => 3 );$lastposts = get_posts( $args ); foreach($lastposts as $post) : setup_postdata($post); ?> <a href="<?php the_permalink(); ?>"> <h2><?php the_title(); ?></h2> <p><?php the_excerpt(); ?></p> </a> <?php endforeach; ?>
I would like the latest events feed to follow the same setup.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Latest events feed on homepage’ is closed to new replies.