Hey,
I'd like to add Twitter Widget Pro manually to my theme. How can I do that? Using "[twitter-widget ..." does only work on pages/articles, I need some PHP code, right?
Thanks!
Hey,
I'd like to add Twitter Widget Pro manually to my theme. How can I do that? Using "[twitter-widget ..." does only work on pages/articles, I need some PHP code, right?
Thanks!
Try this:
<?php
echo do_shortcode( '[twitter-widget ...]' );
?>Thanks a lot!
Hi,
Is there a way to add multiple twitter accounts to one site?
Can I add the twitter username somewhere in there..
<?php
echo do_shortcode( '[twitter-widget ...]' );
?>
to make it only display one account?
Thank you!
Hey richmartin,
I didn't write this plugin or anything, but it pains me to see you hangin' there without an answer, this might help:
Looking at the code, the shortcode takes the parameters:
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h2>',
'after_title' => '</h2>',
'title' => '',
'errmsg' => '',
'fetchTimeOut' => '2',
'username' => '',
'hidereplies' => 'false',
'showretweets' => 'true',
'hidefrom' => 'false',
'showintents' => 'true',
'showfollow' => 'true',
'avatar' => '',
'showXavisysLink' => 'false',
'targetBlank' => 'false',
'items' => 10,
'showts' => 60 * 60 * 24,
'dateFormat' => __( 'h:i:s A F d, Y', $this->_slug )
So essentially, if you apply any of these in shortcode format it will work, see:
echo do_shortcode('[twitter-widget username="jhinson" items="10"]'
Play around with it a bit and see what you come up with.
Hope that helps,
Joseph
That's all explained in the FAQ: http://wordpress.org/extend/plugins/twitter-widget-pro/faq/
Look for "How exactly do you use the twitter-widget shortcode?"
You must log in to post.