TweetScroll Widget
[resolved] tweetscroll shortcode? (7 posts)

  1. oscarsmac
    Posted 3 years ago #

    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


  2. Vladimir Mrkela
    Plugin Author

    Posted 3 years ago #

    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.

  3. oscarsmac
    Posted 2 years ago #


    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

  4. oscarsmac
    Posted 2 years ago #

    I found it...

    turns out I needed to do:

    <?php echo do_widget()... ?>

    everything's working great.

    thanks again for your help.


  5. Vladimir Mrkela
    Plugin Author

    Posted 2 years ago #

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

  6. kanagarathinam
    Posted 2 years ago #

    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?

  7. Pixel Industry
    Plugin Author

    Posted 2 years ago #


    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TweetScroll Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic