Calling multiple Twitter Updates with the_widget
-
I have the following function set up in my theme’s functions.php, where $username is the user’s Twitter handle. The function is called on the author page.
The issue is the tweets that are loaded are the same tweets for all users. Whichever tweets are loaded first are shown for all users, for a cached duration.
How might I call multiple instances of the_widget programmatically? Note that the widget is not initialized in the admin, only in the themes functions.
$instances = array( 'account' => $username, 'show' => '4', 'hidereplies' => 'true', 'title' => '@' . $username ); $args = array( 'before_widget' => '<aside class="twitter">', 'after_widget' => '', 'before_title' => '<h4>', 'after_title' => '</h4>' ); the_widget('Jetpack_Widget_Twitter', $instances, $args);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Calling multiple Twitter Updates with the_widget’ is closed to new replies.