Support » Plugin: Twitter Widget Pro » How can I add Twitter Widget Pro manually to my theme?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Aaron D. Campbell

    (@aaroncampbell)

    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

    Plugin Author Aaron D. Campbell

    (@aaroncampbell)

    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?”

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How can I add Twitter Widget Pro manually to my theme?’ is closed to new replies.