Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dlh01/5437520 to your computer and use it in GitHub Desktop.
Save dlh01/5437520 to your computer and use it in GitHub Desktop.
For using the Jetpack Twitter widget in a template, as of Jetpack 2.2.2
the_widget( 'Jetpack_Widget_Twitter',
array(
'title' => 'RNS on Twitter',
'account' => 'RNS',
'show' => 3,
'hidereplies' => true,
'hidepublicized' => true,
'includeretweets' => true,
'followbutton' => true
),
array(
'before_widget' => '<aside class="widget widget_twitter">',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
'after_widget' => '</aside>',
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment