WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. oscarsmac
    Member
    Posted 1 year 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

    http://wordpress.org/plugins/tweetscroll-widget/

  2. Vladimir Mrkela
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    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
    Member
    Posted 12 months ago #

    Vladimir:

    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>
    <p>---</p>
    </div>

    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
    Member
    Posted 12 months ago #

    I found it...

    turns out I needed to do:

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

    everything's working great.

    thanks again for your help.

    rm.

  5. Vladimir Mrkela
    Member
    Plugin Author

    Posted 12 months ago #

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

  6. kanagarathinam
    Member
    Posted 6 months 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
    Member
    Plugin Author

    Posted 6 months ago #

    Hi,

    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.

    Vladimir

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags