Support » Plugin: TweetScroll Widget » tweetscroll shortcode?

  • Resolved oscarsmac


    I have a client who has some hard-coded php in their site,
    and they would like to use your widget; is there a way to
    use this via shortcode perhaps? or is there a way I could
    add something to the php code to call your code and
    display the client’s tweets?

    thanks in advance.
    robert meyer

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Pixel Industry


    Update plugin to the latest version and install this plugin. It will allow you to create shortcode for any widget you have, as well for TweetScroll.


    thank you for your response.

    I updated to the latest version of TweetScroll (1.2.2), and installed
    the Widget Shortcode plugin as you instructed.

    I then navigated to the widgets page, and drug the TweetScroll
    item into the Arbitrary widget area. I filled in the information
    needed to access my client’s twitter account, and saved.

    I can see the widget shortcode is displayed in the arbitrary widget
    area like this:

    Shortcode: [widget id=”pi_tweet_scroll-2″]

    I then added the code you suggested into the theme’s sidebar-primary.php
    file (which is where all my client’s custom code resides), like this:

    <div style=”border: 1px solid #aaaaaa”>
    <p>test area</p>
    <p><?php do_widget(array(‘id’ => ‘pi_tweet_scroll-2’, ‘title’ => false, ‘before_widget’ => ‘<div>’)); ?></p>

    all I see when visiting the site is the border around the div I created,
    the words “test area” and the dashes (“—“).

    no twitter information is being displayed..

    any help would be appreciated.

    thank you.
    robert meyer

    I found it…

    turns out I needed to do:

    <?php echo do_widget()… ?>

    everything’s working great.

    thanks again for your help.


    Plugin Author Pixel Industry


    Glad you solve it. I made few changes to make Widget shortcode compatible with TweetScroll so everything should be working fine.

    i’m using designova’s next theme tile design, in this theme there is no option for widget, how can i use this twitter scroll?

    Plugin Author Pixel Industry



    Please read in Documentation if there are any widget areas or contact author for this. I didn’t use that theme and don’t know how it works.


Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘tweetscroll shortcode?’ is closed to new replies.