Example Twitter feed

How to apply

  • Add the Recent Tweets Widget plugin
  • Add the widget to a widget area
  • Add a template block to a page, post or reusable block

Example template block:

template-parts/widgets/tweets.php

Example template part:

<?php
if ( ! is_active_sidebar( 'tweets' ) ) {
	return;
}
?>
<aside id="tweets" class="tweet-widget-area">
	<?php dynamic_sidebar( 'tweets' ); ?>
</aside><!-- #secondary -->