I am trying to put Jquery into a PHP file. I need to put a twitter feed that works perfectly when i put into a HTML file but I cant get it to work in my homepage.php file.
It is from this tutorial.
I have created the seperate javascript file and tried to echo the script but I am having no luck.
Here is the php file:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.twitter.feed.js"></script>
<script type="text/JavaScript">
$(document).ready(function() {
$('#twitter-feed').dcTwitterFeed({
id: '#thepaulmac',
tweetId: 'thepaulmac',
retweets: false,
replies: false,
avatar: false,
results: 20,
images: 'small'
});
});
</script>
<?php get_header(); ?>
<div id="twitter-feed"></div>
Does anyone know what I would have to do to get this to work?
I'd appreciate any help.