Grow your CSS skills. Land your dream job.

Issue With Twitter Feed in WordPress

  • # November 23, 2008 at 7:35 pm

    Hi, Guys

    So I got my Twitter feed working in WordPress but it isn’t very reliable and I don’t know why. So when I say this I mean when you refresh the page the tweet won’t show up any more. I’m not sure if my code is wrong or not.

    My Template is http://www.karbondesigns.com

    Code:
    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    >


    ');
    });
    });

    $.getJSON("", function(data){
    $.each(data.items, function(index, item){
    $("").attr("src", item.media.m).addClass("thumb").appendTo(".flickr .inside").wrap("").wrap("

    ");
    });
    });

    });
    //]]>

    < ?php wp_head(); ?>

    < ?php
    $page = $_SERVER['REQUEST_URI'];
    $page = str_replace("/","",$page);
    $page = str_replace(".php","",$page);
    $page = $page ? $page : 'default'
    ?>

    /”>< ?php bloginfo('name'); ?>

    < ?php bloginfo('description'); ?>

    < ?php include (TEMPLATEPATH . '/searchform.php'); ?>

    Here’s my Sidebar

    Code:
# November 24, 2008 at 7:24 pm

Anyone? I just Thoughr I’d add it hasn’t worked today but was working Yesterday! I’m confused as to why this is happening.

# November 24, 2008 at 8:41 pm

Your link to the jQuery library seems to be broken:

http://karbondesigns.com/js/jquery-1.2.6.min.js

# November 24, 2008 at 8:56 pm

I changed the Link to my JQuery to somewhere I know it works still no go.

Any Other Ideas

# November 24, 2008 at 11:54 pm

Now I’m seeing what you originally saw. I got it to load once or twice the rest of the time it was erroring.

Here is the error I am seeing:
http://skitch.com/chriscoyier/hwmq/karbondesigns.com

It’s something in the jquery library itself that is erroring, which is super weird if you ask me. And you can see below that that part of your tweet is making it in. I’m afraid I don’t know what to tell you. I’d maybe try linking to the Google-hosted copy of jQuery.

# November 25, 2008 at 8:00 am

Still No go!

Here’s my New Code Social Sidebar Remains the Same. I don’t think it’s the problem though.

Code:
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>


');
});
});

$.getJSON("", function(data){
$.each(data.items, function(index, item){
$("").attr("src", item.media.m).addClass("thumb").appendTo(".flickr .inside").wrap("").wrap("

");
});
});

});
//]]>

< ?php wp_head(); ?>

< ?php
$page = $_SERVER['REQUEST_URI'];
$page = str_replace("/","",$page);
$page = str_replace(".php","",$page);
$page = $page ? $page : 'default'
?>

/”>< ?php bloginfo('name'); ?>

< ?php bloginfo('description'); ?>

< ?php include (TEMPLATEPATH . '/searchform.php'); ?>

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".