• Resolved Okoth1

    (@okoth1)


    Hi,

    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?

    Thanks

    https://www.ads-software.com/extend/plugins/rapid-twitter-widget/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Peter Wilson

    (@peterwilsoncc)

    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.

    Thread Starter Okoth1

    (@okoth1)

    Hi,

    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.

    Thanks

    Thread Starter Okoth1

    (@okoth1)

    And then it became quiet…

    Thread Starter Okoth1

    (@okoth1)

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Twitter name from custom field’ is closed to new replies.