Rapid Twitter Widget
[resolved] Twitter name from custom field (5 posts)

  1. Okoth1
    Posted 2 years ago #


    Plugin is great, works well, but I was wondering if I could add the twitter name into the widget using a custom field.

    Let's say I have the widget installed and shown in the sidebar and I want for several people (who have their own page) show each account's tweets. So when you go to A's page, you'll see A's tweets, on B's page you'll see B's tweets.

    I know you can add multiple widgets and use a conditional tag, but there are more than 100 twitter accounts...

    I was thinking about something like this, but the widget doesn't show up when I add it to rapid-twitter-widget.php:
    global $wp_query;$postid = $wp_query->post->ID;$widgettweet = get_post_meta($postid, 'a-twitter-account', true); and replace $instance['account'] with $widgettweet and remove the if ( empty... line later on.

    Anyone any thoughts on this?



  2. Peter Wilson
    Plugin Author

    Posted 2 years ago #

    I'm not quite clear on the code changes you've made, I'm sorry.

    Regardless, I'm unable to provide support once the code base has been altered.

  3. Okoth1
    Posted 2 years ago #


    Thanks for the reply and sorry I wasn't clear enough.

    I was trying to use some code that get the value out of the custom field and add it to your plugin code.

    The code is this How to get custom fields outside the loop

    I'd like to add the twitter account name to the custom field and from there I'd like to add it with a conditional tag to the author's page sidebar.

    So basically, I'd like to add the twitter account name not in the widget field, but via custom fields.


  4. Okoth1
    Posted 2 years ago #

    And then it became quiet...

  5. Okoth1
    Posted 2 years ago #

    Sorry, couldn't wait. Wrote my own widget. Deleted yours.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Rapid Twitter Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic