Support » Plugin: Custom Twitter Feeds » Twitter Feed in Widget

  • Resolved Paul Thomson

    (@pthomson87)


    Hello,

    I have a listings website and I would like to display the twitter feed in a widget but have a different feed for each listing. Is this possible either with the free version or pro version?

    Ie: would it be possible to have a custom twitter id field in a custom post type so that the widget can show the listings feed? And if left empty, show a default feed?

    Thanks,
    Paul

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Hey Paul,

    Either version of the plugin can handle what you’re describing.

    You can enter a default feed in the admin Settings area for Twitter Feeds and then change the screen name in the shortcode like this:

    [custom-twitter-feeds screenname="myOtherName"]

    For the custom post type idea, you can create a template that dynamically sets the screen name using php. Something like this:

    <?php 
    $screen_name = get_the_screenname();
    echo do_shortcode( '[custom-twitter-feeds screenname="'. $screen_name .'"]' ); 
    ?>

    That’s great, thanks

    Plugin Contributor Craig at Smash Balloon

    (@craig-at-smash-balloon)

    No problem Paul!

    No obligation or anything, but we always appreciate reviews if you felt like leaving one. Let me know if you ever need anything else!

    Thanks again,

    Craig

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Twitter Feed in Widget’ is closed to new replies.