Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6619031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:54:51+00:00 2026-05-25T20:54:51+00:00

What is in my functions: $var = get_option(‘to_twitter_feed’); array( name => Twitter Username, desc

  • 0

What is in my functions:

$var = get_option('to_twitter_feed');

array( "name" => "Twitter Username",
    "desc" => "Enter your Twitter username for the Twitter feed",
    "id" => $shortname."_twitter_feed",
    "type" => "text",
    "std" => ""),

In my WordPress options I have a custom twitter widget. I want users to be able to simply type their name in the input and have it inserted into the widget code. Most of this code is complete: basically, I just need to know how to put the what is called in first code below into the second code.

How I call it:

<?php echo get_option('to_twitter_feed'); ?>

The code I need to put it into (where it says THEUSERNAME):

<script type='text/javascript'>
    jQuery(function($){
        $(".tweet").tweet({
            username: "THEUSERNAME",
            join_text: "auto",
            avatar_size: 32,
            count: 3,
            auto_join_text_default: "said,", 
            auto_join_text_ed: "we",
            auto_join_text_ing: "we were",
            auto_join_text_reply: "replied to",
            auto_join_text_url: "was checking out",
            loading_text: "loading tweets..."
        });
    });
</script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:54:52+00:00Added an answer on May 25, 2026 at 8:54 pm

    if you get twitter username by

    <?php echo get_option('to_twitter_feed'); ?>
    

    then

    you can set twitter username in java script like this

    <script type='text/javascript'>
        jQuery(function($){
            $(".tweet").tweet({
                username: "<?php echo get_option('to_twitter_feed'); ?>",
                join_text: "auto",
                avatar_size: 32,
                count: 3,
                auto_join_text_default: "said,", 
                auto_join_text_ed: "we",
                auto_join_text_ing: "we were",
                auto_join_text_reply: "replied to",
                auto_join_text_url: "was checking out",
                loading_text: "loading tweets..."
            });
        });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've started to wrap my functions inside of Objects, e.g.: var Search = {
I have this piece of code: $(#faq).click(function () { var url = $.get(faq, {
Using this jquery code: <a href=javascript:void(0) id=m1>Get Selected id's</a> jQuery(#m1).click( function() { var s;
$.get($(this).attr('id'), function(data){ var qp_post = $(data).filter('title'); alert(qp_post); }); This fetches the content fine however
I used the following function: function datediff() { var dat1 = document.getElementById('date1').value; alert(dat1);//i get
Hello I get a weird error in this code: function validateForm(aform) { var s=;
function text_window() { var xmlDoc; if (window.XMLHttpRequest) { xmlDoc=new window.XMLHttpRequest(); xmlDoc.open(GET,cd_catalog.xml,false); xmlDoc.send(); xmlDoc=xmlDoc.responseXML; }
I use the following javascript function, function get_check_value(formId,checkboxId,TxtboxId) { alert(formId); var c_value = ;
var Dog = function() { var _instance = 'hello world'; return function() { console.log(this._instance);
$(a.close).click(function() { var id = $(this).attr(id); alert(id); $(this).parents(div.venue:first).fadeOut(Fast); return false; }); Any ideas why

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.